that code is not related to derived class! christian's answer is related to derived class but the question is not!
in 248 page of beginning visual c# 2010 is a code that related to override constructor in one class!
dude, when we have more than one constructor in one class, can call another constructor by :this([argument of another constructor])
like this code:
Code:
class test
{
private int A;
public test(int a)
{
this.A=a;
}
public test():this(10)
{
}
}
in this code we have a class that have two constructor, first have one argument, 2nd have not any argument but we need that when the programmer create a object of our class A variable have some value, if programmer doesn't set that value,*by calling 2nd constructor) when test() has called, the test(10) is called by this(10).
good luck both!
