Explain data encapsulation?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Is c++ primer good for beginners?

0 Answers  


How static variables and local variablesare similar and dissimilar?

0 Answers  


Write about a nested class and mention its use?

0 Answers  


How do you master coding?

0 Answers  


How do you clear a map in c++?

0 Answers  


How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)

2 Answers  


What is low level language in simple words?

0 Answers  


What is a smart pointer?

2 Answers  


What is a volatile variable in c++?

2 Answers  


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


What is lambda in c++?

0 Answers  


What is pair in c++?

0 Answers  


Categories