Computer Science, asked by agnidsp444, 10 months ago

What Is Meant By Subclass In Java

Answers

Answered by Khoosh4484
0

Answer:

A Java subclass is a class which inherits a method or methods from a Java superclass. A Java class may be either a subclass, a superclass, both, or neither! The Cat class in the following example is the subclass and the Animal class is the superclass.

Answered by bryadav76
0

Answer:

The class which is derive from another class is called subclass

Explanation:

In fact, in java all classes must be derived from the other some class i.e. Superclass

Similar questions