2018-11-15
2018-11-15 本文已影响0人
藏在车底的阿杜
eclipse 创建项目
image.png
创建类Telphone
package com.imooc;
public class Telphone {
float screen;
float cpu;
float mem;
void call() {
System.out.println("aa");
}
}
image.png
image.png
创建类InitailTelphone
package com.imooc;
public class InitailTelphone {
public static void main(String[] args) {
// TODO Auto-generated method stub
Telphone phone = new Telphone();
phone.call();
}
}
image.png
运行
image.png
image.png