编写矩形类 计算矩形面积

public class juxing {
    
    int a;
    
    int b;        
    
    juxing(int a,int b)
    {
        System.out.println("矩形面积s=" + (a*b));
    }
    
    
}
public class juxing1 {

    public static void main(String[] args) {
        
        juxing s = new juxing(5, 6);
                

    }

}

原文地址:https://www.cnblogs.com/future-zhenzhen/p/5243710.html