码迷,mamicode.com
首页 > 其他好文 > 详细

11.13(2)

时间:2017-11-20 01:21:41      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:tostring   top   void   str   pack   ide   private   ack   date   

package top.ELF;

import java.sql.Date;

public abstract class Student {
    private String name;
    private String Class;
    private String date;

public String getName() {
    return this.name;
}
public void setName(String name) {
    this.name = name;
}
public String GetClass() {
    return this.Class;
}
public void setClass(String Class) {
    this.Class = Class;
}
public String getDate() {
    return this.date;
}
public void setDate(String date) {
    this.date = date;
}
public Student(String name,String Class,String date) {
    this.name = name;
    this.Class = Class;
    this.date = date;
}
public Student() {
    super();
}

@Override
public String toString() {
    return "Student [name=" + name + "]";
}
public abstract String speak();

}

11.13(2)

标签:tostring   top   void   str   pack   ide   private   ack   date   

原文地址:http://www.cnblogs.com/ELF-CH/p/7862995.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!