急急急,在线等,这是怎么回事!
package com.imooc; public class InitailTelphone { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Telphone phone = new Telphone(); phone.call(); phone.sendMessage(); //1.给实例变量赋值 phone.screen = 5.0f; phone.cpu = 1.4f; phone.mem = 2.0f; //2.调用对象的方法 phone.sendMessage(); phone.call(); } } 运行以后结果就是: Telphone有打电话的功能! Telphone有发短信的功能! Telphone有发短信的功能! Telphone有打电话的功能! 请问我之前的赋值的scoreen cpu mem都没有啊,这是咋回事啊?