摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2017-10-24 22:50 fendou300 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1. 设计一个Windows应用程序,在该程序中首先构造一个学生基本类,在分别构造小学生、中学生、中职生、大学生等派生类,要求具有不同的特征和行为,能通过静态成员自动记录不同的学生人数。 参考界面如下: (1)修改一些控件的属性。 (2)核心代码如下: using System; using Sys 阅读全文
posted @ 2017-10-24 22:49 fendou300 阅读(2049) 评论(1) 推荐(0) 编辑
摘要: //账户子类 protected String name; protected String accountid;////帐号 protected int number;//身份证号码 protected Double balance;//余额 protected String starttime;//开户时间 public account(String accountid){ // TODO Auto-generated constructor stub this(accountid,null,null,0,0); } //构造方法 public account(String accountid,String name,String starttime,int number,double balance){ this.accountid = accountid; this.name=name; this.starttime=starttime; this.number=number; this.balance=balance; } 阅读全文
posted @ 2017-10-04 17:30 fendou300 阅读(2270) 评论(0) 推荐(0) 编辑
摘要: package test;import java.util.Scanner;//键盘输入/** public class test{ public static void main(String[] args){ //提示输入总人数 System.out.println("请输入做这个游戏的总人数: 阅读全文
posted @ 2017-09-24 10:30 fendou300 阅读(592) 评论(0) 推荐(0) 编辑