List Info

Thread: C-Sharp (C#) Group: calling base class constructor and current class default constructor




C-Sharp (C#) Group: calling base class constructor and current class default constructor
user name
2006-09-20 01:05:00
Given
class A
{
A(int x, int y)
{...
}
}

class B: A
{
B()  // default constructor
{...
}
B(int a, int b, string s):base(a, b)  // 2nd constructor
{...
}
}

>From B, is there a way to call the base class's
constructor and call
its default constructor as well?

Thanks in advance,
Sokun


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )