| Score | Description |
|---|---|
| Mandatory part + Extra exercise |
This module introduces inheritance in C++.
-
- This exercise involves creating a base class
ClapTrapwith attributes like name, hit points, energy points, and attack damage, and functions to attack, take damage, and be repaired.
- This exercise involves creating a base class
-
- This exercise likely involves creating a derived class from
ClapTrap, such asScavTrap, which inherits attributes and functions but may have its own specific behavior (e.g.,guardGate()) and different attribute values.
- This exercise likely involves creating a derived class from
-
- This exercise might involve creating another derived class from
ClapTrapwith its own unique characteristics.
- This exercise might involve creating another derived class from
-
Extra: Exercise 03: Now it's weird!
- This exercise could introduce multiple inheritance or more complex inheritance scenarios, possibly involving a
DiamondTrapclass.
- This exercise could introduce multiple inheritance or more complex inheritance scenarios, possibly involving a
- Code is compiled with
c++and flags-Wall -Wextra -Werror. - Code must compile with the
-std=c++98flag. - Class names are in UpperCamelCase.
- Output messages end with a newline character.
- The C++ standard library is allowed, but external libraries and certain C functions are forbidden.
| ⬅️ Previous exercise | ➡️ Next exercise |
|---|---|
| CPP_Module_02 | CPP_Module_04 |
