1、编写一个长方形类,在类中实现成员的定义,实现面积和周长的方法.2、定义一个类,实现圆的面积和周长

1、编写一个长方形类,在类中实现成员的定义,实现面积和周长的方法.2、定义一个类,实现圆的面积和周长
要用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); ...
我来回答
类似推荐
请使用1024x768 IE6.0或更高版本浏览器浏览本站点,以保证最佳阅读效果。本页提供作业小助手,一起搜作业以及作业好帮手最新版!
版权所有 CopyRight © 2012-2024 作业小助手 All Rights Reserved. 手机版