This topic is now archived and is closed to further replies.

class question

This topic is 5115 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering if someone could answer this quick question. I have two headers one with class A defined in it and the other having class B defined in it. Now class B extends A but I want class A to have a member function that would accept an instance of class B as a parameter. If I try to do this I get an error in the header containing the definition of class B, "base class undefined". I was just wonder how I should declare these classes so I can do this.

Share this post

Link to post
Share on other sites