What is encapsulation example?
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
What is difference between oop and pop?
How can you overcome the diamond problem in inheritance?
How do you make derived class as an abstract class?
Can a destructor be called directly?
What is the difference between Home and $Home?
what is the definition of incapsulation
difference between static and non-static variables?
What is virtual class and friend class?
What is the main purpose of inheritance law?
What is polymorphism what is it for and how is it used?
c++ program to swap the objects of two different classes