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 type of question are asked in thoughtworks pair programming round ?
What is encapsulation oop?
What do you mean by abstraction?
What is virtual constructors/destructors?
What is a friend function & its advantage?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What are the 4 pillars of oop?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
What is encapsulation process?
what are the ways in which a constructors can be called?
Which method cannot be overridden?
What is multiple inheritance?