The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Static Members

Advertisement

Advertisement

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

Message:

OOD and static methods

Posted by Harald Sorbu on October 14, 1999 at 9:35 AM

Hi

Thanks to Bill Venners from writing these articles.

But I have a question.

Theoretic scenario in UML:

I have 100 different panels. panel1 has panel2, panel2
has panel3...
panel100 wants to communicate with panel2.

What is the best solution?
1) Make panel2 static and use Panel1.panel2 in panel100
2) Create panel1. Then f.ex. use a method
panel1.panel2.panel3....panel100.setPanel(panel1.panel2);

Anybody????

HS




Replies:

Sponsored Links



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