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
Choose the correct answer from the options Q given below:
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. a-III, b-I, c-II, d-IV
Explanation
If classes differ only by a parameter, use templates; if actual types are known only at run time, use a class hierarchy; inline operations with templates give run-time efficiency; reaching derived-class specifics through a base needs explicit casting.
More Programming Languages and Computer Graphics questions
- 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
- Of the following, which is NOT a logical error?
- Which statement is false?