标签:
---恢复内容开始---
package juxing; public class juxing { void juxing() { chang=1; kuan=2; } double chang; double kuan; void mianji() { System.out.println("矩形面积="+chang*kuan); } } package juxing; public class ceshi { public static void main(String[] args) { juxing myju=new juxing(); myju.chang=2; myju.kuan=3; myju.mianji(); } }
---恢复内容结束---
标签:
原文地址:http://www.cnblogs.com/1ming/p/5244089.html