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 polymorphism and types?
What is purpose of inheritance?
What is the purpose of polymorphism?
What does sksksk mean in text slang?
What is abstraction encapsulation?
What is the importance of oop?
What is multilevel inheritance in oop?
What is class encapsulation?
What is the important feature of inheritance?
class type to basic type conversion
write a program to find 2^n+1 ?
What type of loop is a for loop?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
can inline function declare in private part of class?