In my experience in object oriented C programming I have seen two ways to implement derived classes.
First Method, have a definition of the pa
The code I worked with used the first method.
The only two reasons I can think of for using the first method is:
I prefer the first method because you can cast the derived class pointer to the parent class without any worries.
Can you do the same thing with the second method? ( It seems like you would have to jump through a hoop or two to get the same end result )
If you can do the same with method 2, then I think both methods would be equal.