i) 撰写了以下多变法:
public abstract class A
{
readonly int x;
A(int i_MyInt)
{
x = i_MyInt;
}
}
public abstract class B : A
{
//holds few integers and some methods
}
// concrete object class
public class C : B
{
// holds some variables and mathods
C(int MyInt)
{
// here i would like to initialize A s x
}
}
how can i initialize A s x from C i tried passing parameters to A s C tor - but didn t work..
Please Help, Thanks in advance Amitos80