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

Tell me difference between constant pointer and pointer to a constant.

624


Why can’t you call invariants() as the first line of your constructor?

553


What does ctime() do?

614


Why do we use double in c++?

594


Can java be faster than c++?

666






Why c++ is better than c language?

557


What is the use of 'this' pointer?

765


Why is swift so fast?

618


What is the prototype of printf function?

643


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

629


what are the iterator and generic algorithms.

1478


Do you know the use of vtable?

629


What is the header file for setw?

573


What is the main function c++?

589


What happens when you make call 'delete this;'?

603