You are here:

C++/inheritance

Advertisement


Question
In inheritance the arrow mark to wards either base class or derive class?


Answer
Dhivya,
I believe the arrow points towards the derived class. Hence, the derived class takes on the characteristics of the base class. While it would make sense, in a certain way, to have the arrow point from the derived class to the base class, that would be slightly counter-intuitive.

Best Of Luck,
Alan

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Alan F.

Expertise

Having problems with any basic or intermediate parts of C++? I can answer those questions for you using simple English. I have been taking C++ in school for a couple years, so I still remember what it was like to be a beginner (especially with C++, which is a difficult language)!

Experience

I have a C++ web page that discuses the basics of C++. The address is: http://www.afweb.net/complang/

©2016 About.com. All rights reserved.