Before going into OOPS, we need to know about the Object based programming system
Object Based Programming System
Features: Supports code reusability and code separation
Support Dynamic Memory Allocation
Can be Integrated with other programming system
Issues:
It will not support Inheritance
It will not support dynamic polymorphism
Code Extensibiity Issues
Ex: Javascript , VB Script
Object Oriented Programming
Features
Code Reusability
Code Separation
Dynamic Memory Allocation
Code Extensibility
Issues
Uses more memory
Slow than other programming system
Complex in configuration
OOPS IN TypeScript
Object oriented programming is provided with 4 Synopsis
1 Data Encapsulation
Combing/Binding related fields and methods as one unit is Called as "Data Encapsulation"
Practical:
Class is an implementation of data Encapsulation.
2 Data Abstraction
Hiding secured Data and functionality from user with the help of access specifiers is Called "Data Abstraction"
Practical:
Object is an implementation of data Abstraction.