Abstraction object oriented programming in javascript
In my previous article, I talked about encapsulation . Today, I will talk about abstraction. Abstraction is simply showing the essentials. For example, when you're driving, do you think about the insides? Most likely no. Do you care about how a computer works when you buy one? Again, no because you only care if it works. We don't care about the implementation details. That is what abstraction in objected oriented programming is. Here is another example:
Here it only shows what the user only needs to see. The hourlyrate actual number is hidden from the user as it is not necessary for them to see.