1.

Wrapping data and its related functionality into a single entity is known as _____________(a) Abstraction(b) Encapsulation(c) Polymorphism(d) ModularityI have been asked this question in unit test.Enquiry is from OOPs Concept in section Basics Concepts of C++ of C++

Answer»

Right option is (b) ENCAPSULATION

Easiest explanation - In OOPs, the property of ENCLOSING data and its related FUNCTIONS into a SINGLE entity(in C++ we call them classes) is called encapsulation.



Discussion

No Comment Found

Related InterviewSolutions