This repository contains practical exercises for the 4 Pillars of OOP with Typescript implemetations (Encapsulation, Abstraction, Inheritence and Polymorphisme)
- Clone this repository.
- Install the typescript dependency with
npm install
. - You will find exerises under the
src
directory:- Implemetations & explanations are in the
index.ts
file. - You can run an exercise to see the output of the demonstration with the
npm run start:[name of the exercise's directory]
. E.g:npm run start:kingdom
. - You can change / adapt the implementation for your better understanding as well.
- Implemetations & explanations are in the
We welcome contributions! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository and create a new branch.
- Make your changes or add an intersting exercice or even improve existing implemetation / explanation.
- Delete js files generated by typescript.
- Submit your pull request.
Ensure that your code adheres to the project's coding format.