Continuing with the noob sessions.... ;)
What's better to do?
a) Create a type that has 100 methods in it.
b) Create a type that passes (self) to 100 functions outside of the type?
I guess I'm wondering, if 1000 obejcts were created using the type, would there be 100 copies of the same routines in every object, taking up memory, etc? Thanks.
What's better to do?
a) Create a type that has 100 methods in it.
b) Create a type that passes (self) to 100 functions outside of the type?
I guess I'm wondering, if 1000 obejcts were created using the type, would there be 100 copies of the same routines in every object, taking up memory, etc? Thanks.