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
Get step-by-step solutions from verified subject matter experts
