Subclasses can provide much more functionality than a class extension.

If your design requires the control to have extra properties or events, then a subclass is a must.

If you are only adding extra methods to a framework object (e.g. adding another method to the listbox) then use an extends method (I have a whole Extension Library Module which extends the built in framework to suit my needs), it's much cleaner and doesn't require you to subclass all of your controls.

- Tom

On 30/11/2006, at 7:38 PM, Gary Edge wrote:

Are there any advantages or disadvantages to using class extensions over sub classes? It seems creating extensions is much neater than having a slew of classes hanging around.

Gary_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to