What is an object

Very much like a collection of nouns and verbs.

A person can be described as nouns, these in Java are called properties

hairColor=”blond”
height=”6″
legs=”2″
jacketColor=”Blue”

and verbs to describe what the person does/ actions, in Java these are methods (actions)

eat()
run()
sleep()
laugh()

To create an object, we just need to ask

what does it have? (What properties does it have?)
What does it do?

Leave a Reply