Question: C++ Which line is incorrect? 1. templatestypenane > 2.class TemplateClass 3.6 4.public: 5. 1/Default constructor TemplateClass(); 7/Overloaded constructor 8. TemplateClass(const T): 10 //Function returns the

C++
Which line is incorrect? 1. templatestypenane > 2.class TemplateClass 3.6 4.public: 5. 1/Default constructor TemplateClass(); 7/Overloaded constructor 8. TemplateClass(const T): 10 //Function returns the value stored in the souber variante 11 TemplateClass getMembervar() const; 12 13. //Function sets the value stored in the member variable to a given value. void set Member Var(const Ta); 15. //Function over loads the comparison operator bool operatore const Ta) const: 18 W/Destructor -TemplateClass(); 21. 22. private 23 /Member variable of the class Trenbervar 16 17. 25.): Line 1 should be template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
