What is an explicit constructor?



What is an explicit constructor?..

Answer / nimish singh

A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It's purpose is reserved explicitly for construction.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Do we have private destructors?

12 Answers   Symphony, TCS,


What is the outcome of cout< a) 16 b) 17 c) 16.5

0 Answers  


What is the difference between a pointer and a link in c ++?

0 Answers  


What is data types c++?

0 Answers  


Write about a nested class and mention its use?

0 Answers  






What is the difference between global int and static int declaration?

0 Answers  


What is the disadvantage of using a macro?

0 Answers  


What is #include cmath?

0 Answers  


What do you mean by C++ access specifiers ?

1 Answers  


Will rust take over c++?

0 Answers  


What is the extraction operator and what does it do?

0 Answers  


What is an orthogonal base class in c++?

0 Answers  


Categories