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 best c++ book for beginners?
wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster
What are the advantages of using typedef in a program?
List out some of the OODBMS available?
When is a template better solution than a base class??
What is the difference between static global and global ?
What is encapsulation in c++?
What is long in c++?
Explain shallow copy?
What is the difference between structures and unions?
Shall we use 'free' to free memory assigned by new, What are the further consequences??
Explain how to initialize a const data member.