黑马程序员技术交流社区
标题:
小试身手
[打印本页]
作者:
wx_pmVIrag6
时间:
2016-7-31 21:03
标题:
小试身手
class Demo6 {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
abstract class Eployee {
String name;
String Id;
int salary;
public Eployee(){}
public Eployee(String name, String Id, int age){
this.name = name;
this.Id = Id;
this.salary = salary;
}
public void setName (String name){
this.name = name;
}
public String getName(){
return this.name;
}
public void setId(String Id){
this.Id = Id;
}
public String getId(){
return this.Id;
}
public void setSalary(int salary){
this.salary = salary;
}
public int getSalary(){
return this.salary;
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2