please give me an advice

F

freegnu

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
 
S

Salt_Peter

freegnu said:
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

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;
}
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top