Chapter 14: Problem 21
In this section, we discussed superclasses and subclasses. Which is the general class and which is the specialized class?
Short Answer
Expert verified
Answer: A superclass, also known as a base class or parent class, is a general class that contains properties and methods that can be inherited by other classes. In contrast, a subclass, also known as a derived class or child class, is a specialized class that inherits properties and methods from the superclass and can also have its own unique properties and methods. The general class is the superclass, while the specialized class is the subclass.