为什么需要引入接口
且看下面这个例子,如果没有接口则会造成大量的代码冗余
using System;
using System.Collections;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
int[] array = new int[] {
11, 22, 33, 44, 55 };
ArrayList arrayList = new ArrayList(){
1,2,3,4,5,6
};
double res1