Thread
:
question on CONSTRUCTOR
View Single Post
itstimetojazz
Light Poster
18Mar2010,16:12
other method using inheritence
Code:
Class A { protected: int a; }; class B:public A { public: int c; }; int main() { B b; return 0; }
Using this method you can use the protected member of base class using the object of derived class
Last edited by shabbir; 18Mar2010 at
19:07
.. Reason:
Code blocks