> > Sorry for the ignorance, but what is a Virtual Class and what is
> > useful for?
Thanks to all that explained it.


On Sep 03, 2006 12:07 PM, Phil M wrote:

> One purpose I am using it for is to simplify the subclasses
> so that they do not have quite as much code.
>
> I have the XBarBase class which is my virtual class.  Then I have
> XBarButton as a subclass of XBarBase, and I have a second class
> called XBarSpacer which is also a subclass of XBarBase.  Any
> XBarButton and XBarSpacer is also a XBarBase, but since
> XBarBase only has limited drawing features it is not a useful
> class by itself.

I see... so, in your example the XBarBase is something like the
RectControl class of RB that is the base class for other controls
classes like PushButtons and EditFields. But, can we say that
RectControl is a "kind" of a Virtual Class?

Carlos

_______________________________________________
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