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 |
Explain the static storage classes in c++.
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What are the differences between a struct in C and in C++?
What's the order in which the local objects are destructed?
Describe new operator and delete operator?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
Why do we use classes in c++?
What is virtual base class uses?
Comment on assignment operator in c++.
How is computer programming useful in real life?
What is an overflow error?