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 new features that iso/ansi c++ has added to original c++ specifications?
How static variables and local variablesare similar and dissimilar?
What size is allocated to the union variable?
Who created c++?
Describe the advantage of an external iterator.
Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
What are c++ tokens?
What is the difference between public, private, protected inheritance?
implement stack using stack.h headerfile functions
1 Answers Exilant, GMG, Subex, University,
Describe private, protected and public?
What is the use of class in c++?
Is it possible for a member function to delete the pointer, named this?