M
Manco
1. If you do not declare an explicit constructor, C-sharp will generate a
default paramaterless constructor that calls Object:ctor()
2. All derived class constructors implicity call base(), this can be
verified by looking at the MSIL.
3. If you declare a constructor in the base class with a parameter, but not
the paramaterless one, and you derive from this class, you will get a
compile error, because the C-sharp compiler wants to call base() and it
isn't there in the base class.
default paramaterless constructor that calls Object:ctor()
2. All derived class constructors implicity call base(), this can be
verified by looking at the MSIL.
3. If you declare a constructor in the base class with a parameter, but not
the paramaterless one, and you derive from this class, you will get a
compile error, because the C-sharp compiler wants to call base() and it
isn't there in the base class.