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
List down the guideline that should be followed while using friend function.
What is meant by the term name mangling in c++?
What is difference between class and structure in c++?
Why do we use using namespace std in c++?
What is c++ redistributable?
What are the general quetions are in DEna bank manager IT/System interviews?
What are friend classes? What are advantages of using friend classes?
What is the this pointer?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What is ostream in c++?
What is the use of 'this' pointer?
What is a vector c++?
Can we get the value of ios format flags?
What is c++ similar to?
What is scope operator in c++?