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.
DDaudalagidhar citeretfor 2 år siden
A subclass is also said to be derived from its parent class or that the subclass extends the parent.
fb2epub
Træk og slip dine filer
(ikke mere end 5 ad gangen)