c# 设计一个类shape(抽象的),设计其两个子类,circle(圆形)类和square(正方形)类。利用多态实现
c# 设计一个类shape(抽象的),设计其两个子类,circle(圆形)类和square(正方形)类。利用多态实现
日期:2018-04-12 13:27:32 人气:2
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Shape[] shapes = new Shape[10];
for (int i = 0; i < 10; i++)
{
Random r = new