What is encapsulation in C++? Give an example.


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

Post New Answer

More C++ General Interview Questions

Describe the syntax of single inheritance in C++?

0 Answers   Fidelity,


What is the role of static keyword for a class member variable?

0 Answers  


Is there any difference between int [] a and int a [] in c++?

0 Answers  


Can we define a constructor as virtual in c++?

0 Answers  


What are the types of STL containers?

4 Answers  






What do you mean by Stack unwinding?

1 Answers  


How do you clear a set in c++?

0 Answers  


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

0 Answers  


What is size of string in c++?

0 Answers  


check whether a no is prime or not.

3 Answers   TCS,


Do we have private destructors?

12 Answers   Symphony, TCS,


How can we read/write Structures from/to data files?

0 Answers  


Categories