Suppose also that the class automobile has private instance


Question: Suppose the class SportsCar is a derived class of a class Automobile. Suppose also that the class Automobile has private instance variables named speed, manufacturer, and number Of Cylinders. Will an object of the class Sports Car have instance variables named speed, manufacturer, and number Of Cylinders?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Suppose also that the class automobile has private instance
Reference No:- TGS02457158

Now Priced at $15 (50% Discount)

Recommended (96%)

Rated (4.8/5)