This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function BankAccount { | |
// Your code here .. | |
} | |
/* | |
account instance { | |
balance: ... , | |
user: ..., | |
currency: ... | |
} |
For this exercise you can use Repl.it or your code editor.
Object-oriented programming (OOP) is a programming paradigm (model/standard) based on the concept of “objects”, which can contain data, in the form of attributes / properties ), and code in the form of functions/procedures ( known as methods).
Objects are the main key/tool/means of OOP. We will try to explain this through example.