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 |
What do you mean by internal linking and external linking in c++?
Explain selection sorting?
How do you allocate and deallocate memory in C++?
Explain what is oop?
Explain operator overloading.
Describe the role of the c++ in the tradeoff of safety vs. Usability?
What are the advantages of c++?
Is c the same as c++?
What is an adaptor class or wrapper class in c++?
What is increment operator in c++?
What is cloning?
What is the exit function in c++?