Muhammad Iqbal https://qeba.my Born To Learn Sun, 29 May 2022 14:25:22 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.9 Object-oriented Programming (O-O-P) https://qeba.my/object-oriented-programming-o-o-p/ Tue, 19 May 2020 01:20:06 +0000 https://qeba.my/?p=1408 Encapsulation

Group relate variable and functions that operate into object

let baseSalary = 100;
let overTime = 10;
let rate = 20;

function getWate(baseSalary, overTime, rate){
   return baseSalary + (overTime * rate)
}

to OOP>>>

Abstraction

Inheritance

Polymorphism

Example:

]]>
S O L I D Principles https://qeba.my/s-o-l-i-d-principles/ https://qeba.my/s-o-l-i-d-principles/#respond Tue, 19 May 2020 01:04:49 +0000 https://qeba.my/?p=1403 S – Single Responsibility

O – Open/Closed

L – Liskov Substitution

I – Interface Segregation

D – Dependency Inversion


Single Responsibility Principle ?..

  • Class should have only one reasons to change.

Open/Closed Principle ?..

  • Should able to extend class without modify it.

Liskov Substitution

]]>
https://qeba.my/s-o-l-i-d-principles/feed/ 0
Internship https://qeba.my/internship/ https://qeba.my/internship/#respond Sat, 18 Jan 2020 03:07:48 +0000 https://qeba.my/?p=1388 https://qeba.my/internship/feed/ 0