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 |
Carry out conversion of one object of user-defined type to another?
What is a flag in c++?
given unsigned int ui1=3,ui2=7; what are the outputs of a)ui1 & ui2 b)ui1 && ui2 c)ui1 | ui2 d)ui1 || ui2 i also need the justification for the answers thank you
How would you use the functions memcpy(), memset(), memmove()?
How should runtime errors be handled in c++?
Evaulate: 22%5 a) 2 b) 4 c) 0
List the merits and demerits of declaring a nested class in C++?
describe private access specifiers?
a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
What is ifstream c++?
Tell me can a pure virtual function have an implementation?