Buku Pemrograman Berorientasi Objek Kelas 10 SMK

Buku Pemrograman Berorientasi Objek Kelas 10 SMK


Kelas 10
Pengarang -
Penerbit Direktorat Pembinaan Sekolah Menengah Kejuruan
Tahun 2014
Bagikan kepada teman anda.

Materi Pemrograman Berorientasi Objek


KATA PENGANTAR ................................ ................................ ................................ .............. iii
DAFTAR ISI ................................ ................................ ................................ ........................... iv
GLOSARIUM ................................ ................................ ................................ ........................ x
PETA KEDUDUKAN BUKU ................................ ................................ ................................ ... xii
Peta Konsep : Pemrograman Berorientasi Obyek Kelas XI Semester 1 ............................ xiii

BAB I PENDAHULUAN ................................ ................................ ................................ ......... 1
A. Deskripsi ................................ ................................ ................................ .................. 1
B. Prasyarat ................................ ................................ ................................ ................. 2
C. Petunjuk Penggunaan ................................ ................................ ............................. 2
D. Tujuan Akhir ................................ ................................ ................................ ............ 3
E. Kompetensi Inti Dan Kompetensi Dasar ................................ ................................ . 4
F. Cek Kemampuan Awal ................................ ................................ ............................ 5

BAB II PEMBELAJARAN ................................ ................................ ................................ ........ 6
A. Deskripsi ................................ ................................ ................................ .................. 6
B. Kegiatan Belajar ................................ ................................ ................................ ...... 6

1. Kegiatan Belajar 1 : Mengenal Pemrograman Berorientasi Obyek .................... 6
a. Tujuan P embelajaran ................................ ................................ ...................... 6
b. Uraian Materi ................................ ................................ ................................ .. 6
c. Rangkuman ................................ ................................ ................................ ... 13
d. Tugas ................................ ................................ ................................ ............. 14
e. Test Formatif ................................ ................................ ................................ . 16
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................... 16
g. Lemb ar Kerja Siswa ................................ ................................ ....................... 19

2. Kegiatan Belajar 2 : Perangkat Lunak Pemrograman Berorientasi Obyek ........ 20
a. Tujuan Pembelajaran ................................ ................................ .................... 20
a. Uraian Materi ................................ ................................ ................................ 20
b. Rangkuman ................................ ................................ ................................ ... 38
c. Tugas ................................ ................................ ................................ ............. 38
d. Test Formatif ................................ ................................ ................................ . 40
a. Lembar Jawaban Test Formatif (LJ). ................................ .............................. 40
c. Lembar Jawaban Test Format if (LJ) ................... 
e. Lembar Kerja Siswa ................................ ................................ ....................... 42

3. Kegiatan Belajar 3 : Perangkat Lunak Pemrograman Berorientasi Obyek ........ 43

BAB II ................................ ................................ ................................ ................................ . 43
ATURAN DAN DASAR PEMROGRAMAN BERORIENTASI OBYEK ................................ ........ 43
A. Deskripsi ................................ ................................ ................................ ................ 43
B. Kegiatan Belajar ................................ ................................ ................................ .... 43

1. Kegiatan Belajar 3: Dasar dan Aturan Pemrograman Berorientasi Obyek ................................ ................................ ................................ ......... 43
a. Tujuan Pembelajaran ................................ ................................ .................... 43
b. Uraian Materi ................................ ................................ ................................ 44
c. Rangkuman ................................ ................................ ................................ ... 53
d. Tugas ................................ ................................ ................................ ............. 53
e. Test Formatif ................................ ................................ ................................ . 55
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................... 55
g. Lembar Kerja Siswa ................................ ................................ ....................... 56

2. Kegiatan Belajar 4 :Dasar dan Aturan Pemrograman Berorientasi Obyek (Operator Logika) ................................ ................................ ................................ ...... 57
a. Tujuan Pembelajaran ................................ ................................ .................... 57
b. Uraian Materi ................................ ................................ ................................ 57
c. Rangkuman ................................ ................................ ................................ ... 63
d. Tugas ................................ ................................ ................................ ............. 63
e. Test Formatif ................................ ................................ ................................ . 65
f. Lembar Jawaban Test Formatif (LJ). ................................ .............................. 65
g. Lembar Kerja Siswa ................................ ................................ ....................... 67

3. Kegiatan Belajar 5 :Dasar dan Aturan Pemrograman Berorientasi Obyek (Kondisi) ................................ ................................ ................................ .................... 68
a. Tujuan Pembelajaran ................................ ................................ .................... 68
b. Uraian Materi ................................ ................................ ................................ 68
c. Rangkuman ................................ ................................ ................................ ... 74
d. Tugas ................................ ................................ ................................ ............. 74
e. Test Formatif ................................ ................................ ................................ . 77
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................... 78
g. Lembar Kerja Siswa. ................................ ................................ ...................... 80

4. Kegiatan Belajar 6 :Dasar dan Aturan Pemrograman Berorientasi Obyek (Perulangan) ................................ ................................ ................................ .............. 81
a. Tujuan Pembelajaran ................................ ................................ .................... 81
b. Uraian Materi ................................ ................................ ................................ 81
c. Rangkuman ................................ ................................ ................................ ... 90
d. Tugas ................................ ................................ ................................ ............. 91
e. Test Formatif ................................ ................................ ................................ . 93
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................... 93
g. Lembar Kerja Siswa. ................................ ................................ ...................... 95

5. Kegiatan Belajar 7 :Konsep Class dan Obyek ................................ .................... 96
a. Tujuan Pembelajaran ................................ ................................ .................... 96
b. Uraian Materi ................................ ................................ ................................ 96
c. Rangkuman ................................ ................................ ................................ . 101
d. Tugas ................................ ................................ ................................ ........... 101
e. Test Formatif. ................................ ................................ .............................. 103
f. Lembar Jawaban Test Formatif (LJ). ................................ ............................ 104
g. Lembar K erja Siswa ................................ ................................ ..................... 105

6. Kegiatan Belajar 8 :Konsep Class dan Obyek ................................ .................. 106
a. Tujuan Pembelajaran ................................ ................................ .................. 106
b. Uraian Materi ................................ ................................ .............................. 106
c. Rangkuman ................................ ................................ ................................ . 112
d. Tugas ................................ ................................ ................................ ........... 112
e. Test Formatif. ................................ ................................ .............................. 115
f. Lembar Jawaban Test Formatif (LJ). ................................ ............................ 115

7. Kegiatan Belajar 9 :Konsep Class dan Obyek ................................ .................. 118
a. Tujuan Pembelajaran ................................ ................................ .................. 118
b. Uraian Materi ................................ ................................ .............................. 118
c. Rangkuman ................................ ................................ ................................ . 123
d. Tugas ................................ ................................ ................................ ........... 124
e. Test Formatif ................................ ................................ ............................... 126
f. Lembar Jawaban Test Forma tif (LJ) ................................ ............................. 126
g. Lembar Kerja Siswa ................................ ................................ ..................... 127

8. Kegiatan Belajar 10 :Pembungkusan Data ................................ ...................... 128
a. Tujuan Pembelajaran ................................ ................................ .................. 128
b. Uraian Materi ................................ ................................ .............................. 128
c. Rangkuman ................................ ................................ ................................ . 130
d. Tugas ................................ ................................ ................................ ........... 130
e. Test Formatif ................................ ................................ ............................... 131
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 131
g. Lembar Kerja Siswa ................................ ................................ ..................... 132

9. Kegiatan Belajar 11: Pembungkusan ................................ ............................... 133
a. Tujuan Pembelajaran ................................ ................................ .................. 133
b. Uraian Materi ................................ ................................ .............................. 133
d. Tugas ................................ ................................ ................................ ........... 136
e. Test Formatif ................................ ................................ ............................... 137
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 138
g. Lembar Kerja Siswa ................................ ................................ ..................... 139

10. Keg iatan Belajar 12 : Pewarisan ................................ ................................ . 140
a. Tujuan Pembelajaran ................................ ................................ .................. 140
b. Uraian Materi ................................ ................................ .............................. 140
d. Tugas ................................ ................................ ................................ ........... 144
e. Test Formatif ................................ ................................ ............................... 147
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 147
g. Lembar Kerja Siswa ................................ ................................ ..................... 148

11. Kegiatan Belajar 13: Pewarisan ................................ ................................ ... 149
a. Tujuan Pembelajaran ................................ ................................ .................. 149
b. Uraian Materi ................................ ................................ .............................. 149
c. Rangkuman ................................ ................................ ................................ . 152
d. Tugas ................................ ................................ ................................ ........... 152
e. Test Formatif ................................ ................................ ............................... 154
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 154
g. Lembar Kerja Siswa ................................ ................................ ..................... 156

12. Kegiatan Belajar 14 : Pewarisan ................................ ................................ .. 157
a. Tujuan Pembelajaran ................................ ................................ .................. 157
b. Uraian Materi ................................ ................................ .............................. 157
c. Rangkuman ................................ ................................ ................................ . 158
d. Tugas ................................ ................................ ................................ ........... 159
e. Tes t Formatif ................................ ................................ ............................... 160
f. Lembar Jawaban Test Formatif (LJ). ................................ ............................ 161
g. Lembar Kerja Siswa ................................ ................................ ..................... 162

13. Kegiatan Belajar 15 :Pewarisan ................................ ................................ ... 163
a. Tujuan Pembelajaran ................................ ................................ .................. 163
b. Uraian Materi ................................ ................................ .............................. 163
c. Rangkuman ................................ ................................ ................................ . 165
d. Tugas ................................ ................................ ................................ ........... 166
e. Test Formatif. ................................ ................................ .............................. 167
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 167
g. Lembar Kerja Siswa. ................................ ................................ .................... 169

14. Kegiatan Belajar 16 :Polim orphisme ................................ ........................... 170
a. Tujuan Pembelajaran ................................ ................................ .................. 170
b. Uraian Materi ................................ ................................ .............................. 170
c. Rangkuman ................................ ................................ ................................ . 172
d. Tugas ................................ ................................ ................................ ........... 173
e. Test Formatif ................................ ................................ ............................... 174
f. Lembar Jawaba n Test Formatif (LJ) ................................ ............................. 175
g. Lembar Kerja Siswa. ................................ ................................ .................... 176

15. Kegiatan Belajar 17 : Polimorphisme ( Virtual Methode Invocation) .......... 177
a. Tujuan Pembelajaran ................................ ................................ .................. 177
b. Uraian Materi ................................ ................................ .............................. 177
d. Tugas ................................ ................................ ................................ ........... 180
e. Test Formatif ................................ ................................ ............................... 181
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 181
g. Lemba r Kerja Siswa ................................ ................................ ..................... 182

16. Kegiatan Belajar 18 : Polimorphisme ( Casting Objek dan InstanceOf ) ....... 183
a. Tujuan Pembelajaran ................................ ................................ .................. 183
b. Uraian Materi ................................ ................................ .............................. 183
d. Tugas ................................ ................................ ................................ ........... 186
e. Test Formatif ................................ ................................ ............................... 187
f. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 187
g. Lembar Kerja Siswa ................................ ................................ ..................... 188

17. Kegiatan B elajar 19 : Package ................................ ................................ ..... 189
a. Tujuan Pembelajaran ................................ ................................ .................. 189
b. Uraian Materi ................................ ................................ .............................. 189
c. Rangkuman ................................ ................................ ................................ . 191
d. Tugas ................................ ................................ ................................ ........... 192
e. Test Formatif ................................ ................................ ............................... 194
f. Le mbar Jawaban Test Formatif (LJ) ................................ ............................. 194
g. Lembar Kerja Siswa ................................ ................................ ..................... 196

18. Kegiatan Belajar 20 : Package ................................ ................................ ..... 197
a. Tujuan Pembelajaran ................................ ................................ .................. 197
b. Uraian Materi ................................ ................................ .............................. 197
d. Test Formatif. ................................ ................................ .............................. 198
e. Lembar Jawaban Test Formatif (LJ) ................................ ............................. 198
f. Lembar Kerja Siswa ................................ ................................ ..................... 199

Daftar Pustaka ................................ ................................ ................................ ................. 200