c# constructor extends vase code example
Example 1: c# class inheritance constructor
public otherclass{
public otherclass(a,b){
a=0;
b=1;
}
}
public baseClass : otherclass{
public baseClass(string str,int a, int b): base(a,b){
str="whatever";
}
}
Example 2: c# call base constructor
public class MyExceptionClass : Exception
{
public MyExceptionClass(string message, string extrainfo) : base(message)
{
//other stuff here
}
}