Template Class only takes the datatype but not the parameters | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Template Class only takes the datatype but not the parameters

Is it possible to make a constructor there only takes the datatype but not the parameters in a Template Class

17th Jan 2018, 7:58 AM
Thor Westergren
Thor Westergren - avatar
4 Answers
+ 7
Yes I was also trying to make a version there didn't took any arguments in the constructor,
17th Jan 2018, 9:12 AM
Thor Westergren
Thor Westergren - avatar
+ 6
Yes i am using the web interface instead of the app Why?
17th Jan 2018, 10:15 AM
Thor Westergren
Thor Westergren - avatar
+ 5
Just tried know doesn't work, i have make a new version "template_void_06" public, where i will leave all things i tried as comments
17th Jan 2018, 9:30 AM
Thor Westergren
Thor Westergren - avatar
+ 5
I just got it to work but without declaring a constructor, so i have make a new version "template_void_07" public.
17th Jan 2018, 10:02 AM
Thor Westergren
Thor Westergren - avatar