Skip to content

Methods: How to Write Them

Introduced
Handout
Video lesson for this topic Open the video page
7:25

Class Creation

Here is a student, stored as three loose variables: a name, a year, and a grade. That works. Now add a thousand students. You need three thousand variables…

English narration · English and 中文 subtitles you can switch

In this lesson

Video lesson
Vocabulary
English Meaning
accessor/əkˈsesə/A method that provides access to an object's information, usually without changing the object's state.
mutator/mjuːˈteɪtə/

Handout

Log in or create account

IGCSE, A-Level & AP