How to stop conversions among objects?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do c++ programmers do?

558


What is the difference between prefix and postfix versions of operator++()?

597


What are the advantages of c++? Explain

601


Write about the various sections of the executable image?

577


Can a constructor be private?

584






What is function overriding in c++?

606


Is c++ double?

566


What are enumerations?

662


How are Structure passing and returning implemented by the compiler?

603


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

612


Explain the register storage classes in c++.

674


How to declare an array of pointers to integer?

588


Write a program to find the reverse Fibonacci series starting from N.

615


If all is successful, what should main return a) 0 b) 1 c) void

560


Why c++ does not have finally?

595