abstract class Workers {
String name; //who
String categroy; //科目类别
String level; //学历
int graduationtime; //毕业时长
abstract void work(); //工作经历
abstract void now(); //现在
}
interface JavaStudy {
void studyJava();
}
interface AndroidStu {
void studyAndroid();
}
class MySelf extends Workers implements JavaStudy,AndroidStu{
public MySelf() {
super();
super.name = "博主_程序媛";
super.categroy = "文科";
super.level = "大专";
super.graduationtime = 4;
System.out.println(super.name + "," + super.categroy + "," + super.level + "," + "毕业有"+ super.graduationtime + "年了");
}
@Override
void work() {
System.out.println("在物流行业工作了3年多");
}
@Override
public void studyAndroid() {
System.out.println("并且学完后继续学习了android开发直到年底。");
}
@Override
public void studyJava() {
System.out.println("16年5月开始学习JAVA,");
}
@Override
void now() {
System.out.println("回顾16年,收获颇多。");
}
public static void main(String[] args) {
MySelf mySelf = new MySelf();
mySelf.work();
mySelf.studyJava();
mySelf.studyAndroid();
mySelf.now();
}
}