This repository contains solutions to various C++ programming challenges from the 42 School curriculum. Each module is designed to deepen students' understanding of different programming concepts and techniques.
A class hierarchy to demonstrate the concept of polymorphism in C++.
Key objectives included:
- Implementing a base class and derived classes.
- Demonstrating runtime polymorphism using virtual functions.
- Understanding the use of pointers and references to base class objects.
A class that simulates a fire-related scenario using polymorphism.
Key objectives included:
- Implementing a class hierarchy with fire-related classes.
- Demonstrating polymorphism through virtual functions.
- Managing resources and state within the class hierarchy.
An abstract base class and derived classes to demonstrate the use of abstract classes in C++.
Key objectives included:
- Implementing an abstract base class with pure virtual functions.
- Creating derived classes that override the pure virtual functions.
- Demonstrating the use of abstract classes and polymorphism.
Interfaces and implementing them in derived classes, along with a recap of previous concepts.
Key objectives included:
- Implementing interfaces using abstract classes.
- Creating derived classes that implement the interfaces.
- Recapping and demonstrating the use of polymorphism, inheritance, and abstract classes.
To install the project, follow these steps:
- Clone the repository:
git clone git@github.com:jakobsitory/04_CPP04_42CC.git
- Navigate to the project directory:
cd 04_CPP04_42CC
- Navigate to the exercise directory :
cd ex00
,cd ex01
... - Build the project:
make
Follow the on-screen instructions to run program.
./AnimalFarm
./Interface