Lompat ke konten

Konstruktor

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
constructor/kənˈstrʌktə/A special operation used to initialise a newly created object.
default constructor/dɪˈfɒlt kənˈstrʌktə/konstruktor default
Parameters/pəˈræmɪtəz/
overloading/ˌəʊvəˈləʊdɪŋ/Declaring methods or constructors with the same name but different parameter lists, so the applicable version is selected from the call.

Lembar Kerja

Masuk atau buat akun

IGCSE, A-Level & AP