Originally posted by: EmperorRob
Yeah when you have a class with 14 complex functions it's much easier to see immediately what functions are available to a class. Plus it gives you a chance to put all the declarations in a header file so your users (if you have any) can just look at the prototype of your mehtod.
Originally posted by: BingBongWongFooey
Same reason for C function declarations/definitions. C++ is derived from C, remember? You can put the method bodies right into the class declaration, but that will make them inline.
Originally posted by: BingBongWongFooey
You can put the method bodies right into the class declaration, but that will make them inline.
Originally posted by: dighn
Originally posted by: BingBongWongFooey
You can put the method bodies right into the class declaration, but that will make them inline.
are you sure about that?
Originally posted by: MajorCatastrophe
Originally posted by: BingBongWongFooey
Same reason for C function declarations/definitions. C++ is derived from C, remember? You can put the method bodies right into the class declaration, but that will make them inline.
Is that also true when you define C++ templates?
Originally posted by: Armitage
Originally posted by: dighn
are you sure about that?
Yep