Jump to content
  • Advertisement

Archived

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

O_o

class question

This topic is 5308 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
Advertisement
I was placing an include and forwarding a class definition in the wrong places, problem solved.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!