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 |
How do we balance an AVL Tree in C++?
What problems might the following macro bring to the application?
what is the basic concept of c++(object oriented programing)
What is the best c++ book for beginners?
How to declare a function pointer?
given unsigned int ui1=3,ui2=7; what are the outputs of a)ui1 & ui2 b)ui1 && ui2 c)ui1 | ui2 d)ui1 || ui2 i also need the justification for the answers thank you
Write about the local class and mention its use?
What are the static members and static member functions?
How do you establish an is-a relationship?
What is null pointer and void pointer and what is their use?
Do you know what is overriding?
what are the events occur in intr activated on interrupt vector table