When we program multiple lines of code in a process, we refer to this as the program flow. As we run through our program, there is a flow, like the flow of a river that carries water from the origin to the river’s end. A flow is how the program operates and what happens with values throughout our code.
But as we look at object-oriented programming, the approach is much different. We focus on the objects that we have in our program and how they work together to make our program work. The flow is still there, but it is encapsulated within each of the objects we work with. Each ...