Class design question



Hi,

Let me first describe the requirement. I have to design a small system
that should be able to manage websites on a hosting environments. The
tasks that i need to do are
- CreateWebSIte
- DeleteWebSite
- ModifyWebSite
- ChangeIPAdress

Now, I have two options to design the Biz functionlity.

Option 1-
Create a class WebSite as following

Class WebSite
Attributes:
Name
CustomerId
PackageType
......

Functions
- CreateWebSite
- DeleteWebSite
- ModifyWebSite
- ChangeIPAdress


Option 1-

Create a class WebSite

Class WebSite
Attributes:
Name
CustomerId
PackageType
......
Functions
SomeFunctions....


and one class for each reques implementing a common interface

Class RequestCreateWebSite
Functions
....
....


Class RequestDeleteWebSite
Functions
....
....

and so on.




What i want to know is the difference in two options i mentioned,
merits and demerits, recomended approach as per OO design principles.

regards,
Sundeep

.



Relevant Pages

  • Re: Class design question
    ... Create a class WebSite as following ... Class RequestCreateWebSite ... That will very likely require a number of specialized objects that all collaborate together to create the overall web site in response to an external request to create a web site. ...
    (comp.object)
  • Re: OT- building a lightwave website
    ... Im assuming that you are more of the design angle. ... Programming isnt SUPPOSED to mean anything to you! ... ps..all that slicing in photoshop, ... figure out how to convert it into a website. ...
    (comp.graphics.apps.lightwave)
  • Re: OT- building a lightwave website
    ... directly to people who use HTML, flash,dreamweaver,inDesign etc everyday. ... Im assuming that you are more of the design angle. ... In programming, it either works or it doesnt, ... figure out how to convert it into a website. ...
    (comp.graphics.apps.lightwave)
  • Re: OT- building a lightwave website
    ... and try and slice up a panel design and then creating a Photoshop gallery. ... I've just tried Word (i didn't know that saved html pages).....wow, ... figure out how to convert it into a website. ...
    (comp.graphics.apps.lightwave)
  • Re: Would anyone like to offer to design a simple charity website and a shop a bit later?
    ...  Parrot Aid in Northampton is a small charity dedicated to the welfare ... the charity is to use a website to improve awareness of its existence ... heaps of items to a shopping cart will cost a lot, ... I could do the actual design of the website for free, ...
    (uk.net.web.authoring)