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
Which should be more useful: the protected and public virtuals?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is the identity function in c++? How is it useful?
Is c++ a good beginners programming language?
Can malloc be used in c++?
What is the latest version on c++?
What is a manipulative person?
Define virtual constructor.
Explain polymorphism?
What is the purpose of the "delete" operator?
Explain bubble sorting.
What are the unique features of C++.
What is the average salary of a c++ programmer?
Write a program to show polymorphism in C++?
What is array in c++ example?