Grokking Advanced JavaScript
Vote

0% completed

​

Abstraction

What does a driver need to know to start a car? A driver turns a key or presses a button. The driver does not check the battery voltage, run the fuel pump, or time the spark plugs, although all of those steps happen every time.

Code can be built the same way. Giving other code a small set of simple operations, and keeping the steps that carry out each operation out of its view, is called abstraction. Encapsulation, from the previous lesson, protects an object's data

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content