首页 > 代码库 > 扬帆起航
扬帆起航
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();
}
}
扬帆起航