Skip to content

Instantly share code, notes, and snippets.

View EfeAgare's full-sized avatar
🎯
Focusing

Efe Agare EfeAgare

🎯
Focusing
View GitHub Profile
@EfeAgare
EfeAgare / composition.rb
Created August 2, 2022 14:57
Composition_over_inheritance
## We try to seperate out the concept andcombine them in meaning ways
##
## 1) Employee with employee data
## 2) Employee payment structure (hourly, salaried, freelancer)
## 3) Commission based on the number of contract
##
# 1
### break down again
class Commission