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

Are your header files macro-protected?

Clicky

commented: He knows what he's doing +1

Are your header files macro-protected?

Clicky

I don't think so. How do i make them macro-protected?

I don't think so. How do i make them macro-protected?

If you're not sure what it is, then probably not.

Did you follow the link?

If you're not sure what it is, then probably not.

Did you follow the link?

Thanks. I clicked after i replied. sry

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.