A
Author
I have
class BaseClass
{
public BaseClass(string s1, string s2)
{
this.S1 = s1;
this.S2 = s2;
}
public string S1 { get; set;}
public string S2 { get; set;}
}
class SubClass: BaseClass
{
public SubClass(int int1, int int2)
{
this.Int1 = int1;
this.Int2 = int2;
}
public int Int1 { get; set; }
public int Int2 { get; set; }
}
VS2008 intellisense underlines the constructor of SubClass and says:
Error 1 'ConsoleApplication1.BaseClass' does not contain a constructor
that takes '0' arguments.
Why? Any hint is highly appreciated.
class BaseClass
{
public BaseClass(string s1, string s2)
{
this.S1 = s1;
this.S2 = s2;
}
public string S1 { get; set;}
public string S2 { get; set;}
}
class SubClass: BaseClass
{
public SubClass(int int1, int int2)
{
this.Int1 = int1;
this.Int2 = int2;
}
public int Int1 { get; set; }
public int Int2 { get; set; }
}
VS2008 intellisense underlines the constructor of SubClass and says:
Error 1 'ConsoleApplication1.BaseClass' does not contain a constructor
that takes '0' arguments.
Why? Any hint is highly appreciated.