An open API service indexing awesome lists of open source software.

https://github.com/aldoignatachandra/typescript-oop

Learning Typescript Object Oriented Programming Such As Class, Inheritance, Interface, Constructor etc.
https://github.com/aldoignatachandra/typescript-oop

object-oriented-programming oop typescript

Last synced: 5 months ago
JSON representation

Learning Typescript Object Oriented Programming Such As Class, Inheritance, Interface, Constructor etc.

Awesome Lists containing this project

README

          

Object Oriented Programming
( Typescript )








TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open source. This repo contains the basic of typescript used in object oriented programming and this repo is just for exercise purpose about typescript. There is build folder that contains how typescript runs in javascript version so we can compare between javascript and typescript. Build folder will appear while we run the script

## Typescript Object Oriented Programming

| No | Basic Object Oriented programming | Languange |
| :-: | :--------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------: |
| 1 | [Class](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/01-Class.ts) | Typescript |
| 2 | [Constructor](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/02-Constructor.ts) | Typescript |
| 3 | [Property Method](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/03-Property_Method.ts) | Typescript |
| 4 | [Constructor 2](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/04-Constructor_2.ts) | Typescript |
| 5 | [Inheritance](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/05-Inheritance.ts) | Typescript |
| 6 | [Super Constructor](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/06-Super_Constructor.ts) | Typescript |
| 7 | [Method Overriding](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/07-Method_Overriding.ts) | Typescript |
| 8 | [Visibility](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/08-Visibility.ts) | Typescript |
| 9 | [Readonly Modifier](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/09-Readonly_Modifier.ts) | Typescript |
| 10 | [Getter Setter](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/10-Getter_Setter.ts) | Typescript |
| 11 | [Static Property Method](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/11-Static_Property_Method.ts) | Typescript |
| 12 | [Return Type](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/12-Return_Type.ts) | Typescript |
| 13 | [Abstract Class](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/13-Abstract_Class.ts) | Typescript |
| 14 | [Interface](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/14-Interface.ts) | Typescript |
| 15 | [Interface Optional Property](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/15-Interface_Optional_Property.ts) | Typescript |
| 16 | [Interface Readonly Property](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/16-Interface_Readonly_Property.ts) | Typescript |
| 17 | [Interface Inheritance](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/17-Interface_Inheritance.ts) | Typescript |
| 18 | [Interface Extends Class](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/18-Interface_Extends_Class.ts) | Typescript |
| 19 | [Dependency Injection](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/19-Dependency_Injection.ts) | Typescript |
| 20 | [Generic](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/20-Generic.ts) | Typescript |
| 21 | [Generic Interface](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/21-Generic_Interface.ts) | Typescript |
| 22 | [Generic Types](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/22-Generic_Types.ts) | Typescript |
| 23 | [Generic Class](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/23-Generic_Class.ts) | Typescript |
| 24 | [Generic Class 2](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/24-Generic_Class_2.ts) | Typescript |
| 25 | [Generic Constraints](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/25-Generic_Constraints.ts) | Typescript |
| 26 | [Generic Class Constraints](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/26-Generic_Class_Constraints.ts) | Typescript |
| 27 | [Type Parameters In Generics constraint](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/27-Type_Parameters_In_Generics_Constraint.ts) | Typescript |
| 28 | [Namespace](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/28-Namespace.ts) | Typescript |
| 29 | [Type Vs Interface](https://github.com/aldoignatachandra/Typescript-OOP/blob/master/src/29-Type_Vs_Interface.ts) | Typescript |

## Installation

1. Clone this repository
2. Install the dependencies by running `yarn`
3. Select in package.json what file TS you want to run and watch
4. Open first terminal and execute use `yarn ts` for convert file .ts => .js
( prefer using `gitbash` if you on `Windows`)
5. Edit `scripts` inside package.json in key `["dev": "nodemon ./build/~"]` and choose which JS script you want to execute
6. Open second terminal and execute nodemon using `yarn dev`

## License

[ISC](https://en.wikipedia.org/wiki/ISC_license "ISC")