Re: inheritance issues


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on April 17, 2001 at 16:28:35:

In Reply to: inheritance issues posted by Rick Craig on April 17, 2001 at 13:23:30:

: hi all, does the entire inheritance scheme have to be in the same file?

No. You should have a cpp/h pair for each class.

as it is now i have parent and child classes in seperate files and when i compile i get "base class not defined" errors -- yes, i have #included the correct files in each header -- any ideas?

Take a look at the forward declaration example in the notes on Conversions I posted yesterday. That should clear it up.

The "base class not defined" error is probably a result of a circularity in your #includes.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]