Answer Posted / rafiuddin
static functions can be called with out the class object
also. we can call static functions with scope resulation
operator.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
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
What is variable example?
What is class and example?
How do you define social class?
How to use CMutex, CSemaphore in VC++ MFC
What is destructor give example?
What is use of overloading?
What is the difference between procedural programming and oops?
Is oop better than procedural?
What are the benefits of polymorphism?
Is html an oop?
what type of questions
How long to learn object oriented programming?
Can we have inheritance without polymorphism?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?