Would an abstract class with static methods help save resources? I am
thinking that taking a bunch of static methods out of a class that gets
instantiated several times would save some resources.
I'm taking a bit of a guess at this, but I would thank that it
wouldn't really save resources. Having a static method in an abstract
class lets you access that method statically (obviously), but if you
have to instantiate multiple children classes, you're going to still
have multiple references to these children. So, that reference size
is still going to be the same.
That's my theory - hopefully someone more knowledgeable can provide a
definitive answer.
P.S. I am curious, however, about static Objects within a class. I
would think, since there is only one reference, it would save some
resources. Of course, if it's updated in one spot, it's updated
everywhere, so that may not meet everybody's needs.