Mar 12, 2017 at 1:20pm UTC
Write your question here.
a. Name the data members that can be accessed by an object of bus class
b. Is the member function output data accessible to the objects of heavy_vehicle class
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
void inputdata( int, int);
class heavy_vehicle : protected vehicle
void readdata( int, int);
class bus: private _heavy_vehicle
void fetchdata( char );
Last edited on
Mar 12, 2017 at 1:23pm UTC
Mar 12, 2017 at 2:06pm UTC
there's protected and private inheritance involved along the way to the bus class. for your own learning why don't you write down what you think might be the answers and the reasons and post them and then we can discuss?
Mar 12, 2017 at 2:59pm UTC
I have some doubt in this area. Thats why I Post
Mar 12, 2017 at 3:01pm UTC
If you don't show what you have, then how could we point out where you have mistakes?
Mar 12, 2017 at 3:03pm UTC
Which data members that can be accessed by an object of bus class?