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 difference between an inner class and a subclass in Java?

Leave a Reply

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