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 full form of oops?
Why is polymorphism used?
What is friend function?
Where You Can Use Interface in your Project
Is react oop?
why we call c++ is object oriented lanaguage
wht is major diff b/w c and c++?
why freind function takes more parameter than normal member function in c++?
How oops is better than procedural?
IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?
Why interface is used?
Why do we use inheritance?