please give me an advice

Discussion in 'C++' started by freegnu, Oct 24, 2006.

  1. freegnu

    freegnu Guest

    hi all, i want to modify a class's interface, that will reference many classes which inherit it
    is there any advice to me?

    thanks
     
    freegnu, Oct 24, 2006
    #1
    1. Advertisements

  2. freegnu

    Salt_Peter Guest

    We could be here until christmas (2010) to answer that question.
    Why not show a short explanation of the issue you are having? Should
    you be using composition instead? Is the class abstract? are you using
    pointers to base class? what do the ctors look like? which one of its
    interfaces are bothering you? why? Is the interface virtual?
    pure-virtual? what result did you expect? what result are you getting?
    etc...
    Inheritance is a diverse, sometimes complex, forever expandeable
    subject.
    Show a skeleton with a base and a derived class and throw something
    relevent at us, please.

    class Base
    {
    };

    class Derived : public Base
    {
    };

    int main()
    {
    Derived derived;
    return 0;
    }
     
    Salt_Peter, Oct 24, 2006
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.