Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Classes - Header or source

Newbie Spellweaver
Joined
Apr 19, 2014
Messages
16
Reaction score
1
Hello everyone,

I think what this a real simple question, typically for beginners in OO, be in C++ or something else. Whetever, I just need to know if you use your classes in some another file .h (header) or you implemented it direct in your source code through of #include directive. My teacher says who is recommended you use it in another file if you will work in a big project, who need speed and organization for you are using a lot of classes. And you, you use it how?

Thank you. :junglejane:
OBS: That is in C++ Language.



little up
 
Junior Spellweaver
Joined
Oct 27, 2008
Messages
165
Reaction score
89
Having header files are useful to avoid dependency problems, also improves compilation time. When your code uses a class will only need to include that class header, the reason is, it doesn't need to know about the implementation of that class only it's interface.
 
Back
Top