Originally posted by Ernest Friedman-Hill:
I also have no idea what you're asking. Perhaps a little bit of code to illustrate how having one getter and 100 getters could be alternate implementations of the same class?
Alternative 1 (one getter/setter):
Alternative 2 (n getter/setter):
Not very clever and elegant perhaps (it depends on the context i think)
but these code fragments are alternative implementations for the same
class.
I think the question of Jack is if the number of methods of a class has
any impact to the performance. I think the number of methods influences
only the size of the class file (and so the time needed to load the class)
and the size of the vtable (but this should not influence performance).
I hope this helps
Stephan