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
what is the use of classes in c++;
Whats oop mean?
What is the difference between a mixin and inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
Describe what an Interface is and how it?s different from a Class.
Program to open a file with First argument
What is a mixin class?
What is command routing in MFC
What is the difference between the C & C++?
difference between static and non-static variables?
What are the two different types of polymorphism?