I'm trying to figure out how to do the following:
Class A has data items:
car
bike
phone
cup
Class B inherits Class A but only the data items car and bike. Data items phone and cup are not available to Class B
Class B adds
tire
handlebars
bell
helmet
Class C inherits from Class B, it also...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.