Rabu, 08 September 2010

Resume 2

Operation
1.Nama operation
2.Parameter
3.Return type

Contoh penggunaan PBO
membuat tape radio
Bisa 2 Fungsi
yang pertama fungsi sebagai TAPE
yang kedua sebagai RADIO


class = Tape Recorder

Attribute = status , tombol , volume , speaker , power
Status = boolean = true =radio
false = tape player

Method = set mode / status () , set on / off () , set volume () , set type sound ()


TURUNAN RADIO


Class = Radio

Attribute = frekuensi , nama channel

Method = search () , search top () , search down ()


diturunkan menjadi class lain yang berfungsi sebagai tape player
Nama class = Tape Player

Attribute = tombol

Method = set tombol ()

0 komentar:

Posting Komentar