Hello. I need some help with a project of mine and the thing is that I have the class organisms that has two sub-classes: animals and plants. Animals has two subclasses itself: Carnivores and Herbivores.
I have succeded in including the plants header file or cornivores header file or herbivores file but whenever i include more than one of them i get errors about redefinition of the class organisms and things like that. Can anyone help me please? Thanks in advance
SpyrosMet
-3
Light Poster
Recommended Answers
Jump to PostAre your header files macro-protected?
All 4 Replies
Fbody
682
Posting Maven
Featured Poster
SpyrosMet
commented:
He knows what he's doing
+1
SpyrosMet
-3
Light Poster
Fbody
682
Posting Maven
Featured Poster
SpyrosMet
-3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.