JAVA 实验报告1040501218 钱胜民(11)
发布时间:2021-06-06
发布时间:2021-06-06
class assistant extends person { }
class lecturer extends person { }
class AssociateProfessor extends person {
assistant(float basepayment, int time, float moneypertime){ }
public float pay(){ }
return basepayment + time * moneypertime; this.basepayment = basepayment; this.time = time;
this.moneypertime = moneypertime;
assistant(float basepayment, int time, float moneypertime){ }
public float pay(){ }
return basepayment + time * moneypertime; this.basepayment = basepayment; this.time = time;
this.moneypertime = moneypertime;
assistant(float basepayment, int time, float moneypertime){ }
public float pay(){
return basepayment + time * moneypertime; this.basepayment = basepayment; this.time = time;
this.moneypertime = moneypertime;
上一篇:申论答题纸