#include using namespace std; class bankaccount { private: // these variables can be used within this class only int accountnumber; string name; protected: // variables under this section could be used in subclasses double balance; public: bankaccount(); // default constructor bankaccount( int an, const string& n ); // constructor with parameters void deposit( double amount ); void withdraw( double amount ); void setname( const string& n ); string getname(); void setnumber( int an ); int getnumber(); double getbalance(); };