Live example for static function?
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 |
Explain unexpected() function?
Under what conditions is multiple inheritance not recommended?
What are static and dynamic type checking?
In a function declaration what does extern means?
Difference between Top down and bottom up approaches for a given project ?
14 Answers BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,
What are the benefits of operator overloading?
How does the copy constructor differ from the assignment operator (=)?
What are the 4 types of library?
What are the two types of comments, and how do they differ?
Difference between Constructors and static constructors?
Can recursive program be written in C++?
What is virtual constructor paradigm?