The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

good design?

Posted by richard on January 07, 2001 at 10:42 AM

Hi

I am getting better at OOP design but far from an expert!

However, I would recommend you don't design your classes in this way (!) Would it not be better to have a super class of both worker and manager (employee, say). The shared methods that apply to both go in the super class, the methods particular to managers and workers go in those respective sub-classes.

If you give me more info about the functions you wish to implement I could try to help further...

regards

richard



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us