+ 1

using myClass?

instead of "myClass::myClass()" can you add "using myClass" after the #include statement and then drop the "myClass::" prefix simply stating "myClass()"

17th May 2017, 7:05 PM
OthaG
OthaG - avatar
2 Answers
+ 3
I'm not sure but you can declare a namespace for your class and then don't have to use the access specifiers
17th May 2017, 7:14 PM
‎ɐısıօՏɐ
‎ɐısıօՏɐ - avatar
+ 1
thank you! I failed to add "namespace"
18th May 2017, 3:05 PM
OthaG
OthaG - avatar