Question: 30. Which type of member function may only be called from a function that is a me ber of the same cass? (a) public )

 30. Which type of member function may only be called from

30. Which type of member function may only be called from a function that is a me ber of the same cass? (a) public ) private global local 31. Assume that myCar is an instance of the Car class and that the Car class has a member function named accelerate. Which of the following is a valid call to the accelerate member function? (a) Car->accelerate) (b) myCar: :accelerate; (c) myCar.accelerate d) yCar:accelerate; 32. What will the following program display on the screen? #include using namespace std; class Tank private: int gallons; public Tank) (gallons - 50; gallons gal; Tank (int gal) int getGallons) return gallons;h int main) Tank storage[3] -10, 20, for (int index- ; index

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!