× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Mike,

Can you just contain one or both of the classes in your class?  That is
almost always the best way to extend a real class anyway (you do not
indicate if these are abstract).

Otherwise, I would create two classes, one that extends each class.  Then,
if it was really necessary to present one class that extended them both,
create a third class that contains these two classes and implements all of
the public methods of the two classes and passes through the method calls.

Hope this helps.

Mark Phippard






"Mike Silvers" <msilvers@HBS-INC.COM>
Sent by: java400-l-admin@midrange.com
06/27/2002 10:15 AM
Please respond to java400-l


        To:     <java400-l@midrange.com>
        cc:
        Subject:        Extending more than one base class....


All,

I need to extend more than one base class for a specific class.  Both
classes are from commercial packages, so I do not have the source for
them.
I can not use an interface for either of them.  Obviously, I can't extend
both of the classes for this class.  Does anyone have any ideas to work
around this Java restriction?

Thanks

Mike

================================
Mike Silvers
AS/400 Senior Programmer/Analyst
AS/400 IBM Certified RPG IV Developer
AS/400 IBM Certified Solutions Expert
Hainey Business Systems
8 E. Canal St
Dover, PA 17315
Branch Office:  (410) 397-8739
Phone:  (800) 932-3380 ext. 237
Fax:  (717) 292-9474
Web: http://www.hbs-inc.com
________________________________
Providing E-Commerce, EDI, AS/400
Development, Java Development,
and related services nationwide.
================================


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.