Skip to content

Anatomy of a Class

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
encapsulation/ɪnˌkæpsjʊˈleɪʃn/Grouping data with the operations that use it and controlling access through an interface.
instance variables/ˈɪnstəns ˈveərɪəblz/Fields associated with individual objects, so each instance has its own field values.

Handout

Log in or create account

IGCSE, A-Level & AP