java第六章作业
作者:互联网
public class MobilPhoneTest {
public static void main(String[]args){
MobilPhone mp=new MobilPhone();
mp.brand="苹果"; //发工资了,修改品牌属性
String detail=mp.buy("发工资了"); //发工资了,调用带参数的构造方法
System.out.println(detail);
}
}
标签:java,String,MobilPhone,作业,detail,mp,第六章,public,发工资 来源: https://blog.csdn.net/sdiffhh/article/details/115720415