vick Posted November 10, 2003 Posted November 10, 2003 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? Quote
*Gurus* Derek Stone Posted November 10, 2003 *Gurus* Posted November 10, 2003 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. Quote Posting Guidelines
vick Posted November 11, 2003 Author Posted November 11, 2003 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 :( Quote
Administrators PlausiblyDamp Posted November 11, 2003 Administrators Posted November 11, 2003 shared not static ;) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.