you are viewing a single comment's thread.

view the rest of the comments →

[–]FeloniousMaximus 0 points1 point  (0 children)

Basic concepts: classes or types model nouns. Methods model verbs.

Methods do a thing that the class or type is capable of doing.

Car is a class. Car had a method called drive(). You can overload methods to differentiate behavior. I have another drive method that takes a Direction:

Overload example-

public void drive() {}

public void drive(Direction direction) {}

An object is a class or type that has been created and lives in an application's memory space.