How to avoid a class from instantiation?
Answer Posted / achal
Making a constructor private is perfectly legal.
But now u can't create instance of that class.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a baller and a reference in C++?
Can I learn c++ without learning c?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What are the 4 types of library?
What is flush () in c++?
Is c better than c++?
Out of fgets() and gets() which function is safe to use and why?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Does c++ have a hash table?
What is c++ manipulator?
What is the latest c++ standard?
Explain friend class?
What are proxy objects in c++?
What are the differences between java and c++?
Describe delete operator?