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 namespace std; and what is consists of?
Should I learn c or c++ or c#?
What are abstract data types in c++?
What is one dimensional array in c++?
what are Access specifiers in C++ class? What are the types?
What are the uses of static class data?
What are keywords in c++?
When does a 'this' pointer get created?
Why is main function important?
What is iterator in c++?
List down the guideline that should be followed while using friend function.
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is size of string in c++?
Explain the concept of memory leak?
What is the copy-and-swap idiom?