This document discusses using methods to access object behavior in classes and objects. It covers calling methods on objects to trigger actions, and recaps learning how to call various methods. The next step will be designing a class.
This document discusses using methods to access object behavior in classes and objects. It covers calling methods on objects to trigger actions, and recaps learning how to call various methods. The next step will be designing a class.
Last time we learned how to use a constructor to instantiate objects of a class and how to access a property to get state information about an object This time, well use methods to access object behavior In-Lecture Quiz
When we want an object to take some action, we call
A: a friend B: a method C: a foul D: Ghostbusters
Recap Learned how to call various methods Next Time Well design a class