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 the benefit of oop?
What is encapsulation c#?
What is multilevel inheritance?
What is static in oop?
What is the main feature of oop?
Can we create object of abstract class?
Can a destructor be called directly?
What is an advantage of polymorphism?
What is class and example?
Why is oop useful?
What is polymorphism give a real life example?
What is the difference between encapsulation and polymorphism?
Advantage and disadvantage of routing in telecom sector
What is pointer in oop?