Can abstract classes have instance fields?

Abstract classes can have instance variables (these are inherited by child classes). Interfaces can’t. Finally, a concrete class can only extend one class (abstract or otherwise).

Sizin İçin Seçtik  What is the use of abstract class in real time?

Leave a Reply

Your email address will not be published. Required fields are marked *