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 |
Comment on assignment operator in c++.
Carry out conversion of one object of user-defined type to another?
What are guid?
To which numbering system can the binary number 1101100100111100 be easily converted to?
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?
Is c++ a low level language?
what is the basic concept of c++(object oriented programing)
What is an incomplete type?
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.
Define inline function
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
What is problem with Runtime type identification?