為什么方法輸出語(yǔ)句中突然多了那些成員變量
package chapter1;
? ?//1.定義一個(gè)類
public class Telephone02 {
?//2. 屬性(成員變量)有什么
float screen;
float cpu;
float mem;
//3. 方法 干什么
void call() {
System.out.println("Telephone有打電話功能");
}
void sendMessage() {
System.out.println("screen:"+screen+"cpu:"+cpu+"mem:"+mem+"Telephone有發(fā)短信功能");
}
}
2017-10-07
請(qǐng)問(wèn): 輸出語(yǔ)句所在的函數(shù)的目的或者說(shuō)功能是干嘛的呢