inheritance of constructor

Posted on 2004-11-11
Last Modified: 2010-04-15
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
Question by:kolpdc
    LVL 1

    Accepted Solution

    you'll have to explicitly implement a parameterless constructor in the baseclass which will be called first before the one in the inherited class
    LVL 4

    Author Comment

    oh - yes! forgot about it. thanks.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now