a*******y 发帖数: 1040 | 1 2 Answers
Design a online Auction system (similar to e-bay)
Functionalities include enlisting a product for auction by bid owner,
Placing bid for a product by bidders,Bid winner selection,Notification of
bid winner etc ). Interviewer was mainly looking for Objects involved in the
system and their relationship and use of design patterns
class BidManager
class Bidder
class Item
so use command design? BidManager would be the Invoker, Item is the receiver
, Bidder is the client. Bid Manager would have a queue for store all of the
command, anything else? |
|