Creating classes and objects
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access