D
Du Dang
class Base
{
public Base (string str)
{
Console.WriteLine(str);
}
}
class Derived : Base
{
public Derived (int i)
{
// do some thing here based on "i" to generate a
string
base ("some string"); <- this does work
}
}
==================
// i know something like this would work .. but this is not what i need
public Derived (string msg) : base (msg) {
}
thanks for any suggestion
{
public Base (string str)
{
Console.WriteLine(str);
}
}
class Derived : Base
{
public Derived (int i)
{
// do some thing here based on "i" to generate a
string
base ("some string"); <- this does work
}
}
==================
// i know something like this would work .. but this is not what i need
public Derived (string msg) : base (msg) {
}
thanks for any suggestion