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!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
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