Domanda di colloquio di IBM

What is the difference between an interface and an abstract class with only abstract methods?

Risposta di colloquio

Anonimo

16 ago 2021

An abstract class can provide an implementation for some methods and abstractions of others while an interface only provides abstractions that have to be implemented in the classes which extend them