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

Comment on assignment operator in c++.

0 Answers  


Carry out conversion of one object of user-defined type to another?

0 Answers  


What are guid?

0 Answers  


To which numbering system can the binary number 1101100100111100 be easily converted to?

0 Answers  


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

0 Answers  






Is c++ a low level language?

0 Answers  


what is the basic concept of c++(object oriented programing)

4 Answers   Wipro,


What is an incomplete type?

1 Answers  


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

0 Answers  


Define inline function

1 Answers  


1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v

5 Answers   Quark,


What is problem with Runtime type identification?

2 Answers  


Categories