30 / 08 / 2022

54. OOP Basics

Object - it contains data and functions or state and behaviors, usually called methods.

For example, a dog has states such as color, name, type while behaviors such as eating, barking.

Class - can contains many objects, is a template that describe these behaviors and state.

It provides initial values for state, implement behavior