A
Alan Seunarayan
Hello all,
I need to know if I can call a C# constructor in the same way VB.NET and
JAVA can. For example:
class myClass {
public myClass() {
Console.WriteLine("Hello from constructor 1");
}
public myClass(string name) {
Console.WriteLine("{0} says \"Hello from constructor 2\"", name);
myClass(); //want to call the 1st constructor!!
}
}
many thanks and Happy New Year (in advance)
Alan Seunarayan
I need to know if I can call a C# constructor in the same way VB.NET and
JAVA can. For example:
class myClass {
public myClass() {
Console.WriteLine("Hello from constructor 1");
}
public myClass(string name) {
Console.WriteLine("{0} says \"Hello from constructor 2\"", name);
myClass(); //want to call the 1st constructor!!
}
}
many thanks and Happy New Year (in advance)
Alan Seunarayan