a) Inheritance
b) Binding
c) Abstraction
d) Encapsulation
Answer: a
Video Lecture
#include<iostream> using namespace std; class A { private: class B { public: void show() { cout<<"Nested class"<<endl; } }; B in; public: void show() { in.show(); } }; int main() { A out; out.show(); return 0; }
Leave a Reply