31
loading...
This website collects cookies to deliver better user experience
DISCLOSURE: This article contains affiliate links to external products. This means that I will earn a commission at no additional cost to you if you decide to make a purchase. Thank you!
Call methods on an object.
Pass the object as an argument.
sum(arr) is the high-level abstraction.
arr.length is the low-level abstraction.
In example 3.15, the calculation follows a high-level abstraction only.
String endTime;
String endDate;
When we compile our program, a
behavior—like if-else decisions—is resolved and locked into our application and
cannot be modified without recompiling
The opposite of this is late binding, where
the behavior is determined at the last possible moment when the code is run