What is encapsulation example?


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

Post New Answer

More OOPS Interview Questions

class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

0 Answers  


What is difference between oop and pop?

0 Answers  


How can you overcome the diamond problem in inheritance?

0 Answers   NIIT,


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,


Can a destructor be called directly?

0 Answers  






What is the difference between Home and $Home?

2 Answers   TCS,


what is the definition of incapsulation

2 Answers  


difference between static and non-static variables?

2 Answers  


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


What is the main purpose of inheritance law?

0 Answers  


What is polymorphism what is it for and how is it used?

0 Answers  


c++ program to swap the objects of two different classes

0 Answers  


Categories