This project aims to demonstrate fundamental Object-Oriented Programming (OOP) principles using TypeScript. It includes basic implementations of classes, inheritance, encapsulation, and polymorphism.
- Classes: Implementation of classes to represent real-world entities.
- Inheritance: Utilization of inheritance to establish hierarchical relationships.
- Encapsulation: Demonstration of encapsulation through access modifiers.
- Polymorphism: Examples of polymorphic behavior using method overriding.
- TypeScript: Primary language for implementing OOP concepts.
- Node.js: Environment for executing TypeScript code.
src/: Contains TypeScript files for various OOP concepts.index.ts: Entry point for demonstrating the implemented concepts.README.md: Instructions for setting up and running the project.
- Clone the repository:
git clone https://github.com/your-username/oop-typescript.git
- Navigate to the project directory:
cd oop-typescript - Install dependencies (if any):
npm install
- Compile TypeScript files:
npm run build
- Run the project:
npm start
Contributions are welcome! Feel free to fork the repository, create a new branch, and submit a pull request for any improvements or additional features.
This project is licensed under the MIT License - see the LICENSE file for details