A
AndreasW
Hi,
internal static class Program
{
public class foo
{
private int _id;
public foo()
{
}
public foo(int _id)
{
this._id = _id;
}
}
public class bar : foo
{
}
[STAThread]
private static void Main()
{
bar b = new bar(3); // constructor canot be found
}
}
why is this code not allowed ?
thanks
AndreasW
internal static class Program
{
public class foo
{
private int _id;
public foo()
{
}
public foo(int _id)
{
this._id = _id;
}
}
public class bar : foo
{
}
[STAThread]
private static void Main()
{
bar b = new bar(3); // constructor canot be found
}
}
why is this code not allowed ?
thanks
AndreasW