In this section, you'll take the first real steps of learning object-oriented programming in Java. So I guess the first question to ask is, "What is object-oriented programming?" Well, at a high level, object-oriented programming is the creation of objects, discrete code, and logic entities that are unique and separate from each other but can have complicated relationships.
When we write object-oriented code, we begin to deal with and think about the code as though it were a collection of physical pieces or objects. Java is by its very nature an object-oriented language. So, if you've been learning Java, at the very least, you've been using objects without realizing it.
To see the power of object-oriented programming, take a look at the following program (GettingObjectOriented.java):
package gettingobjectoriented; import...