Re: [netrexx-course] sub-classes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [netrexx-course] sub-classes

dIon Gillard/Multitask Consulting/AU



| When subclasses are created, does a program take longer to run?
| Depending on the number of subclasses, it would seem that the
| more searching that's needed to find an inherited method or
| property up the chain would make programs run slower.

| Or does this happen so quick it really isn't noticeable.

Well, sort of...

Creating an object takes longer the deeper the inheritance hierarchy gets,
as each object up the tree needs to be initialised.

But running methods....once a method has been found, it gets invoked using
a quick method thereafter....so minimal overhead gets incurred.


____________________________________________________________
List Site: http://www.findmail.com/list/netrexx-course/ 
To unsubscribe, send to [hidden email]

FREE group e-mail lists at http://www.findmail.com