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
No Answer is Posted For this Question
Be the First to Post Answer
Why multiple inheritance is not possible?
what is difference between c++ language and java language
What is a class in oop?
what is polymorpsim? what are its types?
What is difference between #define and const?
Why and when is a virtual destructor needed?
define oops with class and object
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is function overloading and operator overloading?
Program to check whether a word is the first word of the sentence.
What is abstraction in oop with example?
string is a class or data type in java?