[Chicago-talk] 2 subclasses or Multiple inheritance

me at heyjay.com me at heyjay.com
Tue Mar 23 10:47:36 CST 2004


Alrighty, I'll do it.  Maybe in the future I'll get some common code

Jay
----- Original Message ----- 
From: "Young, Aaron" <Aaron.Young at citadelgroup.com>
To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
Sent: Tuesday, March 23, 2004 10:17 AM
Subject: RE: [Chicago-talk] 2 subclasses or Multiple inheritance


subclass
subclass
subclass

I really really really believe this will work for you

trust me, i mean no harm

Aaron F Young
Broker Reconciliation
Operations & Portfolio Finance
Citadel Investment Group LLC

> -----Original Message-----
> From: me at heyjay.com [mailto:me at heyjay.com]
> Sent: Tuesday, March 23, 2004 9:26 AM
> To: Chicago.pm chatter
> Subject: Re: [Chicago-talk] 2 subclasses or Multiple inheritance
>
>
> Thats sorta like what I'm doing.  But it seems that each of the
> "trademodule"s should be built with the same interface, and
> ideally share
> some code (if possible)
>
> Jay
> ----- Original Message ----- 
> From: "Steven Lembark" <lembark at wrkhors.com>
> To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
> Sent: Sunday, March 21, 2004 6:05 AM
> Subject: Re: [Chicago-talk] 2 subclasses or Multiple inheritance
>
>
> >
> >
> > -- Jay Strauss <me at heyjay.com>
> >
> > > I have a class which connects to Ameritrade (broker), and
> I have another
> > > class which connects to InteractiveBrokers.  Both of
> these classes have
> > > methods quote, connect, disconnect.  The class for
> InteractiveBrokers
> has
> > > a bunch of others too.  While the method names are the same their
> > > implementation is totally different, as are their
> required input parms.
> > >
> > > The classes don't share any of the same code, and I don't see them
> sharing
> > > any/much in the future.
> > >
> > > I'd like to be able to plug in other brokers as necessary.
> > >
> > > So my question is, do I make a base class like "broker" and make a
> > > Ameritrade and InteractiveBrokers that inherit from
> broker, or do a make
> a
> > > broker that inherits from Ameritrade and InteractiveBrokers?
> >
> > You don't. If the dispatching object has a "tradermodule"
> > object stored it in you can use
> >
> >     $dispatcher->{tradermodule}->foobar( args )
> >
> > to handle any tradermodule you prefer. You can populate the
> dispatcher
> > entry with a classname initially then use:
> >
> >     $dispatcher->{tradermodule} =
> $dispatcher->{tradermodule}->initialize;
> >
> > to get an object.
> >
> > --
> > Steven Lembark                               2930 W. Palmer
> > Workhorse Computing                       Chicago, IL 60647
> >                                             +1 888 359 3508
> > _______________________________________________
> > Chicago-talk mailing list
> > Chicago-talk at mail.pm.org
> > http://mail.pm.org/mailman/listinfo/chicago-talk
> >
> >
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
----------------------------------------------------------------------------
---------------------
-------------------------

CONFIDENTIALITY AND SECURITY NOTICE

This e-mail contains information that may be confidential and
proprietary. It is to be read and used solely by the intended recipient(s).
Citadel and its affiliates retain all proprietary rights they may have in
the
information. If you are not an intended recipient, please notify us
immediately either by reply e-mail or by telephone at 312-395-2100
and delete this e-mail (including any attachments hereto) immediately
without reading, disseminating, distributing or copying. We cannot give
any assurances that this e-mail and any attachments are free of viruses
and other harmful code. Citadel reserves the right to monitor, intercept
and block all communications involving its computer systems.







_______________________________________________
Chicago-talk mailing list
Chicago-talk at mail.pm.org
http://mail.pm.org/mailman/listinfo/chicago-talk





More information about the Chicago-talk mailing list