What is difference between superclass and subclass in Java?

The key difference between the Superclass and Subclass is that Superclass is the existing class from which the new classes are derived while Subclass is the new class that inherits the properties and methods of the Superclass .22 Oca 2018

Sizin İçin Seçtik  What is class hierarchy in Java with example?

Leave a Reply

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