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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
20 views
Classes and Objects Using A Class: Methods
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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11
Module 4
Classes and Objects
Lecture Using a Class: Methods
Module 4 Learning Objectives
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