Computer Science Question.

Jul 2013
This is the question on my homework.

1) An include guard, typically in the form of:
#ifndef _SomeClass_Included_ 
#define _SomeClass_Included_ 
// Class declaration here 
Is used to prevent a header file from being included twice in the same implementation file. What happens if a header file declaring a class gets included twice without an include guard in place?

So if it did not ignore the class being defined, would it essentially just re-copy the data of that class into the first class defined - causing an error? Would that be a sufficient answer? :ugeek: