• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

inheritance of constructor

i've got the following very little problem - but i'm in a hurry ;)

i inherited a subclass from a baseclass. both classes only have one constructor with two parameters. the compiler throws the error that there is no constructor in the subclass with the name of the baseclass and no parameters? why the constructor of the baseclass with no parameters in the subclass??

thanks in advance
0
kolpdc
Asked:
kolpdc
1 Solution
 
darkeye_iezCommented:
you'll have to explicitly implement a parameterless constructor in the baseclass which will be called first before the one in the inherited class
0
 
kolpdcAuthor Commented:
oh - yes! forgot about it. thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now