0

In C++ do you have to declare all variables and methods in another class?

10th Aug 2020, 5:51 PM
Adrián
Adrián - avatar
3 Réponses
+ 1
Normally you declare your variables and method where you need them... You're probably meaning templates or header files?
10th Aug 2020, 6:00 PM
Sandra Meyer
Sandra Meyer - avatar
0
Yes, I mean the header
10th Aug 2020, 6:07 PM
Adrián
Adrián - avatar
0
Sorry for late answer, was not in the mood for long explanations (and this was required here). But I found a link where some people already did it for you (read all answers) 🙃 https://softwareengineering.stackexchange.com/questions/297939/c-header-files-design-just-like-defining-an-api/297955#297955
12th Aug 2020, 12:14 AM
Sandra Meyer
Sandra Meyer - avatar