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 are the differences between java and c++?
Which is the best c++ compiler?
What are the 2 main types of data structures?
What is friend class in c++ with example?
How do I get good at c++ programming?
What is the keyword auto for?
Explain the concept of memory leak?
How to demonstrate the use of a variable?
Explain what happens when a pointer is deleted twice?
What is the this pointer?
What is object oriented programming (oop)?
What is c++ prototype?
Why do we need templates?
What is oop in c++?
Explain the concept of copy constructor?