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 using Single and Multiple Inheritance.
What is abstraction?
What is the oops and benefits of oops programming?
What is multilevel inheritance in oop?
What do we mean by a hidden argument in a function?
How can we use the preprocessor #if and #elseif.
What is object in oop with example?
Why polymorphism is used in oops?
What is extreme programming?
Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?
What is the highest level of cohesion?
Which is better struts or spring?