What is an explicit constructor?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How should runtime errors be handled in c++?

715


Define namespace in c++?

726


What are the basics of local (auto) objects?

720


What do you understand by pure virtual function? Write about its use?

671


List the issue that the auto_ptr object handles?

716






What are the main features of c++?

639


Explain 'this' pointer and what would happen if a pointer is deleted twice?

701


What is size of string in c++?

652


What is virtual function? Explain with an example

673


How does the copy constructor differ from the assignment operator (=)?

715


What is lambda in c++?

672


Why can templates only be implemented in the header file?

750


How do I make turbo c++ full screen?

671


What is c++ vb?

705


What is &x in c++?

665