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
Tell me difference between constant pointer and pointer to a constant.
Why can’t you call invariants() as the first line of your constructor?
What does ctime() do?
Why do we use double in c++?
Can java be faster than c++?
Why c++ is better than c language?
What is the use of 'this' pointer?
Why is swift so fast?
What is the prototype of printf function?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
what are the iterator and generic algorithms.
Do you know the use of vtable?
What is the header file for setw?
What is the main function c++?
What happens when you make call 'delete this;'?