1、编写一个长方形类,在类中实现成员的定义,实现面积和周长的方法.2、定义一个类,实现圆的面积和周长
1、编写一个长方形类,在类中实现成员的定义,实现面积和周长的方法.2、定义一个类,实现圆的面积和周长
要用c#设计 谢谢各位了
要用c#设计 谢谢各位了
其他人气:828 ℃时间:2020-05-29 16:51:27
优质解答
using System;class Rectangle{ private int width; private int height;public Rectangle(int w, int h) {width = w;height = h; }public void Area() {Console.WriteLine("Area:{0}", width * height); ...
我来回答
类似推荐
猜你喜欢