xxxxxxxxxx
An abstract class generally defines the core identity of a class,
while an interface is used to define peripheral abilities.
This is why you can only have one base class, but a infinite number of interfaces
xxxxxxxxxx
An abstract class is used when you are defining what an object is.
For example, saying an apple is a fruit.
An interface is used when you are defining what a class can do.
For example, a chief is capable of cooking
xxxxxxxxxx
An abstract class is used when you are defining what an object is.
For example, saying an apple is a fruit.
An interface is used when you are defining what a class can do.
For example, a chief is capable of cooking