public abstract class Base
{
int k;
public int K{get{return k;}}
int b;
public int B{get{return b;}}
public Base(int k,int b){
this.k=k;
this.b=b;
}
Dictionary s = new Dictionary();
public abstract Dictionary S{get;}
public abstract void AddS(K flag, V value);
}
public class A:Base
{
public A(int k,int b):Base(k,b){
}
public override Dictionary S{get{return s;}}
public override void AddS(string flag, int value){
S[flag]=value;
}
}
public class B:Base
{
public B(int k,int b):Base(k,b){
}
public override Dictionary S{get{return s;}}
public override void AddS(int flag, string value){
S[flag]=value;
}
}
static void main(string[] args){
List bs = new List(); //此处错误,该如何修正
}