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

What is vectorial capacity?

0 Answers  


Mention the purpose of istream class?

0 Answers  


Explain rtti.

0 Answers  


Define a constructor - what it is and how it might be called (2 methods)?

0 Answers  


What is a conversion constructor?

1 Answers  


What is the role of C++ shorthand's?

0 Answers   TCS,


What is the use of setprecision in c++?

0 Answers  


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

0 Answers  


What is the average salary of a c++ programmer?

0 Answers  


Are php strings immutable?

0 Answers  


What is data types c++?

0 Answers  


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

0 Answers  


Categories