Is this bad design?

This is a discussion on Is this bad design? within the Object forums in Theory and Concepts category; Hi, Suppose I have a control panel web site which allows me to manage multiple web sites. Each site can have multiple groups, and each group can have multiple members. I have the following objects and methods: Site +--getId() +--getName() Group +--getId() +--getName() Member +--getId() +--getName() Would adding the method getGroups() (returning an array of Group objects) to Site and the method getMembers() (returning an array of Member objects) to Group be bad design?...

Go Back   Application Development Forum > Theory and Concepts > Object

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-28-2008, 04:16 PM
skeftomai
Guest
 
Default Is this bad design?

Hi,

Suppose I have a control panel web site which allows me to manage
multiple web sites. Each site can have multiple groups, and each group
can have multiple members. I have the following objects and methods:

Site
+--getId()
+--getName()

Group
+--getId()
+--getName()

Member
+--getId()
+--getName()

Would adding the method getGroups() (returning an array of Group
objects) to Site and the method getMembers() (returning an array of
Member objects) to Group be bad design?
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.