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 are the advantage of using register variables?
How are the features of c++ different from c?
What is a v-table?
Write about the members that a derived class can add?
Specify some guidelines that should be followed while overloading operators?
How do you establish a has-a relationship?
What is pointer in c++ with example?
Why is c++ still popular?
Difference between shift left and shift right?
Is python better than c++?
Is c++ a float?
Declare a class vehicle and make it an abstract data type.