protected inheritance and abstract classesView more random threads:
- cascading operator overloading in c++ 2011
- what is the basic purpose of object oriented...
- which situation we use stack.h and why we use stack.cpp
- when we make codes in Devc++ after press F9 (compiling) the...
- what is overriding in c++
- What is difference among main() int main() void...
- Boolean data problem in c++ 2011-12
- can we use Microsoft Visual Studio Ultimate 2010 for...
- binary tree,the pre and post order traversal have the same...
- what does it mean " this->object=object"?
Sponsored Links
Example
Code:class Parent{ int id; char * name; public: virtual void display()=0; }; class Derived:protected Parent { public: void display(){ cout<<"Derived class"<<endl; } }; int main(){ Derived obj; obj.display(); system("pause");
There are currently 1 users browsing this thread. (0 members and 1 guests)