Lompat ke konten

The this Keyword

Diperkenalkan
Lembar Kerja
Pelajaran video untuk topik ini Buka halaman video
7:20

Pembuatan Kelas

Berikut seorang siswa, disimpan sebagai tiga variabel terpisah: nama, tahun, dan nilai. Itu berhasil. Sekarang tambahkan seribu siswa. Anda memerlukan tiga ribu variabel…

Narasi bahasa Inggris · takarir bahasa Inggris dan 中文 yang dapat dipilih

Dalam pelajaran ini

Pelajaran video
Kosa kata
English Makna
parameter/pəˈræmɪtə/A value that specifies a particular member of a family of functions, models or systems.
field/fiːld/A named item of data within a database record.
object/ˈɒbdʒekt/An entity in a program with associated state and behaviour, often an instance of a class.
argument/ˈɑːɡjuːmənt/Values or references supplied to a function or procedure when it is called.
unqualified names
instance method/ˈɪnstəns ˈmeθəd/A method invoked with a particular object as its receiver, allowing it to use that object's state.
instance variable
shadowing/ˈʃædəʊɪŋ/
static method/ˈstætɪk ˈmeθəd/A Java method belonging to a class, callable without creating an instance and without an implicit current object.
reference/ˈrefrəns/A value that refers to an object; copying this value does not copy the object itself.
compile error
current object/ˈkʌrənt ˈɒbdʒekt/The instance on which an instance method or constructor is operating, referred to by this.

Lembar Kerja

Masuk atau buat akun

IGCSE, A-Level & AP