Use of Protected...
nclass account {
n public:
n account(const char* ="none",
float=0);
n virtual
void statement();
n private:
n ...
n};
nclass checking : public
account {
n ...
nprotected:
n void statement();
n};
nclass student : public
checking {
n ...
n protected:
n void statement();
n};
n app: student smith("Kyle
smith", 5000, "UT");
n account*
pa = &smith;
n pa->statement();
//okay
n
n
n