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
What is the difference between function overloading and operator overloading?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Write about the scope resolution operator?
What is the best way to declare and define global variables?
Difference between Abstraction and encapsulation in C++?
What methods can be overridden in java?
What is exception handling? Does c++ support exception handling?
Why do we use iterators?
What are the advantage of using register variables?
Why do we use constructor?
How delete [] is different from delete?
Explain one method to process an entire string as one unit?
Why do we need pointers?
What is the type of this pointer in c++?
Is c++ a programming language?