EEL3160 Esam llustration 6 36. A class can have members that use template parame
ID: 3735332 • Letter: E
Question
EEL3160 Esam llustration 6 36. A class can have members that use template parameters as data types. The class defined in Illustration 6 serves to store two elements of any valid type. Which line shows this capability? A, 21 B, 9 C.20 D.6 37. The variable 'retval' will be an object of the same type as the parameters 'a' and 'b' when the function template is instantiated with a specific type. Which line in Illustration 6 is an example of this concept? A.20 B.17 C.13 D.10 38. In order to access variables from outside the class declaration, the scope operator has to be used to indicate the member belongs to the class namespace. Which line in Illustration 6 shows this concept? D.21 A, 13 B, 8 C.5 39. Which lines in Illustration 6 comprise a class prototype? B.13-18 C, 19-23 D, 4-11 40. In case a function member is defined outside the class prototype, the definition is always preceded with the template. prefix: Which line in Illustration 6 shows this concept? A. 4 B. 12 C.13 D. 20Explanation / Answer
36) Line 6
Explanation: Sibce it declares paramaters of template type
37)Line 10
The above line 10 depicts retvAL will also be of same type
38)Line 13
39)4-11 represents class prototype
40) line 20
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.