What is the 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 .

Sizin İçin Seçtik  What does concrete class not have parents?

Leave a Reply

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