How to transfer the construct methdo of the base class

  • Thread starter Thread starter jiangyh
  • Start date Start date
J

jiangyh

hi there:

I have a question about how to transfer the construct methdo of the base class.

thanks a lot.
jiangyh
 
hi
using base keyword
for parameterless constructor
base();
if base constructor has parameters
base(myParameters...)


eg
class A
{
public A(){}

}
class B:A
{
public B():base()
{
}
}

regards
Ansil
//*************
Dimensions
Technopark
Trivandrum
(e-mail address removed)
//****************
 
Back
Top