Samsung Group Interview Question
92 Interview Reviews |
Back to all Samsung Group Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Lead Engineer at Samsung Group:
Write the C++ declaration for a Singleton Class
| Tags: | technical, c++ See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by Anonymous:
{
public:
static foo& Instance()
{
static foo singleton;
return singleton;
}
// Other non-static member functions
private:
foo() {};
foo(const foo&);
foo& operator=(const foo&);
};