For example, let's say there is a class named Shape. Circle, square, and triangle are all objects of the Shape class.
Or, how about a Cat class? The Cat class can contain objects such as catnip or whiskers, but can also have "actions" such as purr and rip your couch apart.
These actions are known as "methods" in Java. I'll talk about objects and methods later in this course.
1そうだね 未プレイ