Pemrograman Berorientasi Objek (S1 Ti) : Tugas-3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

 n Tugas 4

 Tugas-3

PEMROGRAMAN BERORIENTASI
OBJEK (S1 TI)
Tugas-3
Berdasarkan Tugas-2. Jelaskan!
1. Jelaskan maksud perintah Triger UPDATE tbbarang set stock=stock -
new.JmlBrgWHERE
kodebrg=new.KodeBrg seperti yang ada pada File pada Tugas-2, dan
kapan Triger tersebut akan aktif!

2. Jelaskan maksud perintah berikut:


if (((stock(kode) > tempstock)) || ((stock(kode) > jumlah))){
tempstock = tempstock + jumlah;
totalhrg = harga * jumlah;
tmodeltambahbrg.insertRow(y, ok);
}

3. Jelaskan maksud Source code berikut:


a. if (evt.getKeyCode() == 10)
{
//statemen
}
b. if (evt.getKeyCode() == 112)
{
//statemen
}

4. Jelaskan maksud Source code berikut:


a. int row = jTable1.getSelectedRow();
b. int y = tmodeltambahbrg.getRowCount();

5. Jelaskan maksud Source code berikut:


a. if (evt.getKeyChar() == KeyEvent.VK_ENTER)
{
jButton1.doClick();
}
b. String total = tmodeltambahbrg.getValueAt(row, 4).toString();
======= Jawaban di ketik langsung secara online pada Kotak yang
tersedia========

You might also like