How to stop conversions among objects?
Answers were Sorted based on User's Feedback
Answer / kavitha
If any situation like that the constructor should build the
objects and should not get used for carrying out
conversions, In that situation we are required to use the
explicit keyword with the constructor.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / v.senthil kumaran
Declare operator function (dummy) for assignment operator
in the private section of the class.
| Is This Answer Correct ? | 0 Yes | 2 No |
What is the difference between the parameter to a template and the parameter to a function?
Is dev c++ free?
What is using namespace std in c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
What is #include iostream h in c++?
What is a reference in C++?
Are vectors faster than arrays?
Can manipulators fall in love?
Differentiate between structure and class in c++.
What is an adaptor class or wrapper class in c++?
How to declaring variables in c++?
WHO DEVELOPED C++?