If a constructor 'Date' is declared explicitly and has to be defined outside the class, which of the Q following is correct?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. Date::Date(int dd) {/ *... * /}
Explanation
The keyword explicit appears only on the declaration inside the class; the out-of-class definition is just Date::Date(int dd) { … }.
More Programming Languages and Computer Graphics questions
- Given a vector with Cartesian components (x, y), if scaling is done with the matrix [0.5 0; 0 1.5], which of the following are true? 1. Dec…
- Match the List-I and List-II d.To gain access to IV. to use explicit differing instances for casting derived classes through base we have C…
- In what sequence the initialization, testing and execution of body is done while using do-while loop? I. Commenting II. Execution of the bo…
- Assertion A: A Raster scan device is a CRT graphic device and can use a television monitor for display Reason R: In Raster scan display the…
- The hidden surface removal problem with a minimal 3D pipeline can be solved with
- The transformation [x̄ ȳ z̄ w̄]ᵀ = [a1 b1 c1 d1; a2 b2 c2 d2; a3 b3 c3 d3; e f g h] · [x y z 1]ᵀ is called