What is difference between class and subclass in Java?

In the Java language, classes can be derived from other classes, thereby inheriting fields and methods from those classes. Definitions: A class that is derived from another class is called a subclass (also a derived class, extended class, or child class).

Sizin İçin Seçtik  What are nested and inner classes?

Leave a Reply

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