Skip to content

Objects: state, behaviour and an interface

Introduced
Video lesson for this topic Open the video page
5:41

Object-oriented programming

A school app tracks thousands of students. Each has a name, a year group and grades, and each can enrol on a course or receive a grade. Separate variables for…

English narration · English and 中文 subtitles you can switch

In this lesson

Video lesson
Vocabulary
English Meaning
object/ˈɒbdʒekt/An entity in a program with associated state and behaviour, often an instance of a class.
class/klæs/The template; an object is one instance.
state/steɪt/The current values of an object's attributes.
behaviour/bɪˈheɪvjə/The actions or responses provided by an object's methods.
instance/ˈɪnstəns/A particular occurrence or example; in object-oriented programming, an object created from a class.
encapsulation/ɪnˌkæpsjʊˈleɪʃn/In networking, wrapping data with protocol information; in OOP, grouping data with methods and controlling access through an interface.
invariant/ɪnˈveərɪənt/a condition about an object's state that must always remain true
Inheritance/ɪnˈherɪtəns/
Next →

Handout

IGCSE, A-Level & AP