Sollicitatievraag bij TNG Technology Consulting

What's the difference between abstract classes and interfaces in Java?

Antwoord op sollicitatievraag

Anoniem

29 okt 2024

An abstract class is a common base for classes, an interface describes which methods have to be implemented. Example: Animal as abstract class which implements some common methods and Moveable as an interface with methods like move forwards, back, left, right.