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
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are properties in oop?
What is friend function?
What is the real time example of inheritance?
What are the advantanges of modularity
What is oops and its features?
What is a scope resolution operator?
why the memory allocated with new cant be freed using free()
which is best institute to learn c,c++ in ameerpet hyderabad
Why and when is a virtual destructor needed?
What is command routing in MFC
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?