> 其他 >
1、编写一个长方形类,在类中实现成员的定义,实现面积和周长的方法.2、定义一个类,实现圆的面积和周长
要用c#设计 谢谢各位了
人气:217 ℃ 时间: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); ...
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版