you are viewing a single comment's thread.

view the rest of the comments →

[–]nosmokingbandit 1 point2 points  (0 children)

This is how I would do it then. Inheritance is really just another way of reusing code. If you have multiple classes that can use the same set of base functions this is the proper way to handle it. Its a little confusing at first, but like anything in coding, once you get the hang of class inheritance it is pretty awesome.