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 |
What is an orthogonal base class in c++?
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
How to write a program such that it will delete itself after exectution?
Can a class be static in c++?
How can I improve my c++ skills?
how to swap two numbers with out using temp variable
12 Answers Global eProcure, TCS,
Can non-public members of another instance of the class be retrieved by the method of the same class?
Which c++ compiler is best?
Explain stack & heap objects?
What are the advantages of C++ programming compared to C programming?
What is stoi in c++?
write the prime no program in c++?