C++ Virtual Functions Question:

Explain data encapsulation?

C++ Virtual Functions Interview Question
C++ Virtual Functions Interview Question

Answer:

The wrapping up of data and functions into a single unit (Class) is known as Encapsulation. By encapsulating the data inside the class; data is not accessible to the outside world.


Previous QuestionNext Question
Explain polymorphism?Explain virtual destructor?