What the difference btwn class and typename? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What the difference btwn class and typename?

13th Jul 2016, 7:59 PM
Aman
2 Answers
+ 1
class is used to code objects but typename is used in templates
14th Jul 2016, 1:14 PM
OMKAR
OMKAR - avatar
+ 1
If a typename is the same as a typedef struct you can't put functions in the typenames.
28th Sep 2016, 12:35 PM
Hansi Reit
Hansi Reit - avatar