Sollicitatievraag bij HealthEdge Software

What is the difference between an abstract class and an interface in Java?

Antwoord op sollicitatievraag

Anoniem

28 mrt 2025

I explained that both are used for abstraction, but an interface is purely abstract and allows multiple inheritance, whereas an abstract class can have both abstract and concrete methods and supports single inheritance. I also highlighted the use-case scenarios for each in real-world applications.