Is there a way to add a function to a class after it's been defined, like you can add a member variable?
There's a large project I'm working on and I'd like to make it more manageable with classes, but I don't want the extra overhead of loading functions that are only used on a single page every time any page that uses the class loads.
Any info on class optimization or the speed cost of classes vs. normal functions and arrays would be appreciated too.
Thanks.