The fourth C++ module of the 42 curriculum, focused on inheritance.
This project explores single and multi-level inheritance, constructor/destructor chaining across a class hierarchy, and how derived classes extend or override base class behavior.
Each exercise (ex00 to ex03) contains its own Makefile. Compile and run individually:
cd ex00
make
./ex00- ex00: Basic class design (ClapTrap) with attributes, constructors, and member functions.
- ex01: Single inheritance (ScavTrap) extending ClapTrap with new behavior.
- ex02: Multi-level inheritance (FragTrap) building on ScavTrap.
- ex03: Diamond inheritance and constructor/destructor call order (DiamondTrap).
Each exercise is self-contained in its own directory with its own source files, header, and Makefile, following the standard 42 module layout.