Frage im Vorstellungsgespräch bei Systems Limited

Difference between abstract class and interface.

Antwort im Vorstellungsgespräch

Anonym

16. Juni 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.