Answer Posted / sachinmundhra
Live Example for static function is Singleton class.
Static Method is used and called to get the instance of
class.
class Base
(
private:
Base()
public:
static Base* GetObject() // This is a static method
};
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are libraries in c++?
What is a rooted hierarchy?
What is time_t c++?
Explain the use of vtable.
What is the most common mistake on c++ and oo projects?
What is Destructor in C++?
What is #include iostream?
What is the difference between an array and a list?
What will the line of code below print out and why?
What does new do in c++?
Why c++ is created?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What are shallow and deep copy?
what Is DCS ? what i will get benefit when i did?
What does new in c++ do?