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

What are stacks?

605


Define token in c++.

710


What are proxy objects in c++?

639


Why are pointers used?

578


What is class syntax c++?

590






Write a program which employs Recursion

724


Why Pointers are not used in C++?

622


Does c++ have finally?

565


What is else if syntax?

673


How one would use switch in a program?

611


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1504


How many ways can a variable be initialized into in C++?

594


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

794


What is searching? Explain linear and binary search.

583


What is late binding c++?

538