66.5k views
3 votes
What is a subclass? When is a subclass needed in data modeling?

User DataPsycho
by
5.9k points

1 Answer

0 votes

Answer:

is a class that derives from another class. A subclass inherits state and behavior from all of its ancestors. The term superclass refers to a class's direct ancestor as well as all of its ascendant classes.

User William Xifaras
by
6.0k points