Like this…?
public class DerivedFromDerived (int i) : base (int j) : base (int k) {
Like this…?
public class DerivedFromDerived (int i) : base (int j) : base (int k) {
The derived class already calls the base constructor in its constructor - you have to pass all of the parameters to the derived constructor and pass the appropriate ones up the chain…
public class ClassA
{
public ClassA(int k)
{
// do something with k
}
}
public class ClassB : ClassA
{
public ClassB(int j, int k) : base(k)
{
// do something with j
}
}
public class ClassC : ClassB
{
public ClassC(int i, int j, int k) : base(j, k)
{
// do something with i
}
}