Question: Why is it an error to add a const modifier, as shown to the declaration for the member function input given here? class BankAccount {

Why is it an error to add a const modifier, as shown to the declaration for the member function input given here? class BankAccount { public: void input( ) const; // other members };

Explain why data members, in particular should be placed in the private section of a class.

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!