As discussed in Chapter 1, Object-oriented Design, inheritance allows us to create is a relationships between two or more classes, abstracting common logic into superclasses and managing specific details in the subclass.
DDaudalagidцитирует2 года назад
A subclass is also said to be derived from its parent class or that the subclass extends the parent.