hey
..net 2.0
Below I declare 2 classes
******** class A ***********
public class A{
protected int _id;
public int Id
{
get { return _id; }
set { _id = value }
}
public A (int id)
{
this.Id = id;
}
}
******** class B ***********
public class B : A
{
private string _name;
public string Name
{
get { return _name; }
set { _name = value }
}
public B (int id, string name)
{
this.Id = id;
this.Name = name;
}
}
In my .net code I've defined 2 similar classes. When I build the code I get
an compile error on the constructor of class B, it gives this error messsage
"No overload for method A takes 0 arguments"..
what am I missing here??