package a;
public interface CentralPartyCommittee {
void partyLeader();
}
package a;
public abstract class StateCouncil{
abstract void safetyInProduction();
}
package a;
public class Province extends StateCouncil implements CentralPartyCommittee {
public void partyLeader() {
System.out.println("我们各省人民一定坚持党的领导!");
}
@Override
void safetyInProduction() {
System.out.println("我们各省人民一定按照国务院的指示进行安全生产!");
}
}
package a;
public class E1 {
public static void main(String[] args) {
Province p=new Province();
CentralPartyCommittee a=p;
StateCouncil b=p;
a.partyLeader();
b.safetyInProduction();
}
}