Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i m devloping an online auction system and has to be devloped in OO, there are few classes like

Users(not registered)

Members(registered users)

AuctionSystem(handling operation regarding auction and other stuff like closing auction etc )

 

the problems i m facing are:

1) Registeration method: should it be a part of users, as they can register themselves or it should be aprt of AuctionSystem as this system should add user to the db, one more thing there is going to be a mail generated to the user having complete reg info like name pass etc.

or do i have to pass info prom regis page to user and then to AuctionSystem...

 

 

2)should login be a part of Members methos, i m confusing it like, if member is not successfully logon then how can we create an object before and accessing its method??

 

3) there are 3 tables one for items, second for auction and third for bids, wat abt objects, as i m very new in this oo domain i don't know which classes i should develop, do i need to develop only one class of Auction or wat?

  • *Gurus*
Posted

1) There shouldn't be two classes. Both should be encapsulated by one "User" class. A property can denote their registration status.

 

2) A "Login" method could be marked as static (shared) in the "User" class.

 

3) The classes should be "Item", "Auction" and "Bid". You'll most likely need collection objects for each of the classes as well. The classes should be populated from the database and then returned to the caller.

Posted

thanx i figured out the same thing but ahhh i tried writing

public static login(byval username as string, byval password as string) as string

 

but it says method cannot be declared static :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...