Strict sandbox with no internet access and no external help.
ASpell needs to know about ATarget , and ATarget needs to know about ASpell . Use forward declarations ( class ATarget; ) in your header files instead of cross-including headers prematurely. Include the headers at the bottom of the files or inside the .cpp files to avoid compilation loops. 42 exam 05
Defined as virtual void attack() = 0; . This makes the class abstract, meaning it cannot be instantiated directly. Strict sandbox with no internet access and no external help
Are you having trouble managing inside your containers? Share public link Include the headers at the bottom of the files or inside the
Defining an interface by setting a function to = 0 .
Building on the first exercise, this one introduces the concept of inheritance. You will be required to create a hierarchy of classes where a derived class inherits properties and methods from a base class.