Sollicitatievraag bij Systems Limited

Difference between abstract class and interface.

Antwoord op sollicitatievraag

Anoniem

16 jun 2026

An abstract class can look like a template, allowing to share code by defining both fully implemented methods and unimplemented ones, while restricting a class to inherit from only this single parent. An interface acts as a strict contract, defining only the unimplemented methods that a class must follow, but allowing a single class to implement multiple interfaces at once.