Jim is developing software for automating the slot booking p

Jim is developing software for automating the slot booking process for a video game parlor.Customers fill the Booking Request form with the details of the game ,such as the name,number of players,and complexity level .They hand over the form to the booking officer at the parlor.Depending on the availability; the booking officer reserves the time slots and the play station for customers.
Identify the involved classes and objects ,and their attributes.Wrtie methods in the class to accept the game details and store the values in a variable.
天生来踩林黛玉8 1年前 已收到1个回答 举报

xiezhy 春芽

共回答了18个问题采纳率:94.4% 举报

public class GameInfo{
public string Name;
public int numberOfPlayers;
public int complexityLevel;
}
public class GameInfoProvider{
GameInfo _gi;
DateTime _timeSlots;
public void Reserve(GameInfo gi,DateTime timeSlots){
_gi = gi;
_timeSlots = timeSlots;
}

1年前

2
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.012 s. - webmaster@yulucn.com