virtual int getBValue() { if (bobject) { return bobject->Number(); } return 0; }// ERROR - .*
// // the following two functions access // private member functions of class B // and they should not be able to do so // virtual void setBValue(int i) { if (bobject) bobject->Number(i); }// ERROR - .*