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 signs of manipulation?
Is map thread safe c++?
What is endl c++?
What is the use of 'this' pointer?
Write a struct time where integer m, h, s are its members?
Do the parentheses after the type name make a difference with new?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is an orthogonal base class in c++?
Write about an iterator class?
Is c++ fully object oriented?
What are the 3 levels of programming languages?
Do you know about latest advancements in C++ ?
How many types of modularization are there in c++?
What is the purpose of template?
Are strings immutable in c++?