public class Seller { String name; public Seller() { super(); } public Seller(String name) { super(); this.name = name; } public String getName() { return name; } public void setName(String name) { thi... public class Seller {
String name;
public Seller() {
super();
}
public Seller(String name) {
super();
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public void sell1(Excelle excelle){
System.out.println("卖了一辆"+excelle.getType()+"id是"+excelle.getId());
}
public void sell2(Regal regal){
System.out.println("卖了一辆"+regal.getType()+"id是"+regal.getId());
}
public void sell3(Excelle excelle,int number){
System.out.println("我卖了"+number+"辆车");
for (int i=0;i
全部评论
public class TestClass {
public static void main(String[] args) {
Hello hello = new Hello();
String str = hello.getInfo();
System.out.println(str);
}
}
您可能感兴趣的社区主题
评论
选购仪器 上yiqi.com
仪器网络推广
品牌网上传播
长按识别二维码查看信息详情