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 an opaque pointer?
How do you know that your class needs a virtual destructor?
What is the use of static functions?
What is endianness?
What is polymorphism in c++? Explain with an example?
Are c and c++ different?
Why is c++ still best?
What is time_t c++?
What is a pure virtual function? Why is it represented as = 0...how is the internal implementation for the same
Explain pass by value and pass by reference.
Is c++ still being used?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be