{"id":15047176,"url":"https://github.com/raveriss/cpp03","last_synced_at":"2026-01-02T03:35:57.626Z","repository":{"id":229505747,"uuid":"776911160","full_name":"raveriss/cpp03","owner":"raveriss","description":"C++98 exercises on inheritance, exploring base and derived class dynamics and multiple inheritance challenges.","archived":false,"fork":false,"pushed_at":"2024-05-09T11:41:08.000Z","size":1719,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T15:30:59.753Z","etag":null,"topics":["class-hierarchy","coding-exercises","cpp","cpp98","ecole42","inheritance","multiple-inheritance","object-oriented-programming","software-development"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raveriss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-24T19:27:47.000Z","updated_at":"2024-05-09T11:41:11.000Z","dependencies_parsed_at":"2024-05-09T12:42:56.212Z","dependency_job_id":"57f7b0fe-f775-4080-81b5-2ce00225355c","html_url":"https://github.com/raveriss/cpp03","commit_stats":null,"previous_names":["raveriss/cpp03"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp03","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp03/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp03/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp03/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raveriss","download_url":"https://codeload.github.com/raveriss/cpp03/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243473485,"owners_count":20296560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["class-hierarchy","coding-exercises","cpp","cpp98","ecole42","inheritance","multiple-inheritance","object-oriented-programming","software-development"],"created_at":"2024-09-24T20:55:05.612Z","updated_at":"2026-01-02T03:35:52.600Z","avatar_url":"https://github.com/raveriss.png","language":"C++","readme":"# **Projet CPP03 - École 42**\n\n## Introduction\nCPP03 explores the concept of inheritance in C++, demonstrating its utility in building complex object hierarchies. This module continues the exploration of object-oriented programming (OOP) principles using the C++98 standard, with a specific focus on how classes can inherit attributes and behaviors from other classes.\n\n## Structure du Projet\nEach exercise in this module progressively builds on the concept of inheritance, introducing more complex scenarios and challenges:\n\n### Exercise 00: Aaaaand... OPEN!\n- **Directory:** `ex00/`\n- **Files to submit:**\n  - `Makefile`\n  - `main.cpp`\n  - `ClapTrap.{h, hpp}`\n  - `ClapTrap.cpp`\n\n#### Functionality\nImplementation of the `ClapTrap` class with basic functionalities like attack, take damage, and repair. This exercise sets the foundation for understanding how base classes work.\n\n### Exercise 01: Serena, my love!\n- **Directory:** `ex01/`\n- **Files to submit:** \n  - Files from Exercise 00\n  - `ScavTrap.{h, hpp}`\n  - `ScavTrap.cpp`\n\n#### Functionality\nIntroduction of the `ScavTrap` class, which inherits from `ClapTrap`. This exercise expands on the use of inheritance and constructor/destructor chaining.\n\n### Exercise 02: Repetitive work\n- **Directory:** `ex02/`\n- **Files to submit:**\n  - Files from previous exercises\n  - `FragTrap.{h, hpp}`\n  - `FragTrap.cpp`\n\n#### Functionality\nCreation of the `FragTrap` class, derived from `ClapTrap`, and showcasing how inherited classes can override parent functionalities while introducing their own unique features.\n\n### Exercise 03: Now it’s weird!\n- **Directory:** `ex03/`\n- **Files to submit:**\n  - Files from previous exercises\n  - `DiamondTrap.{h, hpp}`\n  - `DiamondTrap.cpp`\n\n#### Functionality\nDevelopment of the `DiamondTrap` class, which inherits from both `ScavTrap` and `FragTrap`. This exercise highlights the complexities and potential pitfalls of multiple inheritance.\n\n## Compilation and Execution\nTo compile an exercise, navigate to the corresponding directory and use `make`. Each program can be run from the command line to demonstrate the designed functionalities.\n\n## Ressources Utilisées\n- [Apprenez à programmer en C++ sur OpenClassrooms](https://openclassrooms.com/fr/courses/1894236-apprenez-a-programmer-en-c)\n- [Programmez en orienté objet avec C++ sur OpenClassrooms](https://openclassrooms.com/fr/courses/7137751-programmez-en-oriente-objet-avec-c)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraveriss%2Fcpp03","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraveriss%2Fcpp03","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraveriss%2Fcpp03/lists"}