why do we use the word "class" in defining a function template? is it related to classes really or is just a sample word? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why do we use the word "class" in defining a function template? is it related to classes really or is just a sample word?

1st Oct 2016, 1:17 PM
parisa
parisa - avatar
2 Answers
0
class tester { public: string a = "A letter."; } This works. objecty tester { public: string a = "A letter." } This doesnt. So yeah.
29th Nov 2016, 8:44 PM
Eze Somarriba
Eze Somarriba - avatar
0
it is related to classes
29th Nov 2016, 8:45 PM
Eze Somarriba
Eze Somarriba - avatar