C#编程试题,在线等答案!!!

Aninternetcaféwantstoselectthecustomerswhoareeligibletoapplymembership@cafe.Theirsele... An internet café wants to select the customers who are eligible to apply membership @cafe. Their selection criteria is “total number of hours the customer has used is more than or equal to 20hours, assume that the individual customer’s number of hours used is calculated by the staff manually before this program was implemented.”
1. develop a user class to store the following user information.
2. initialize using the constructor class
3. create get/set properties
4. develop a class named AssessUser to keep an array of all user object
5. the data must be able to add(),edit(), delete() and also search() which performs the selection of eligible users.
展开
 我来答
光子炮
2010-01-10 · TA获得超过591个赞
知道小有建树答主
回答量:287
采纳率:100%
帮助的人:356万
展开全部
using System;
using System.Collection.Generic;

namespace ConsoleApplication1{
public class Customer{
string _id;
int _totalHours;

public string Id{
get;
set;
}

public int TotalHours{
get;
set;
}

public Customer (string id, int totalHours){
_id = id;
_totalHours = totalHours;
}
}

public class AssessUser : List<Customer>{
}
}
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式