download

Matakuliah
Tahun
Versi
: M0064/Programming I
: 2005
: <<versi/revisi>>
Pertemuan 11
Kasus : Inheritance
1
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa
akan mampu :
• Mahasiswa dapat Memberikan contoh tentang
Inheritance dalam Visual Basic
2
Outline Materi
• Pembahasan Kasus
• Latihan menggunakan Inheritance
3
The Prisoner’s Dilemma – An Exercise in
Inheritance
• Game Theory – A Branch of Mathematics
You
Tails
Me
Heads
Tails
Heads
You Get $ 2
You Lose $ 2
I Lose $ 2
I Get $ 2
You Lose $ 2
You Get $ 2
I Get $ 2
I Lose $ 2
4
• The Prisoner’s Dilemma Story
Player 1’s Move
C (Cooperate)
D (Defect)
C (Cooperate) Player 1 gets –1 Points Player 1 gets 0
points
Player 2’s
Move
Player 2 gets -1 Piunts Player 2 get -5
points
D (Defect)
Player 1 gets -5 points
Player 2 gets 0
points
Player 1 gets -3 points
Player 1 gets -3
points
5
• The Iterated Prisoner’s
Dilemma
• The Firs Computer
Simulations of the
Prisoner’s Dilemma
• Writing Your own
Computer Simulation
6
• The Prisoner’s Dilemma – An Exercise in Object
Desing and Programming
• Developing the Generic Player Object
• Developing a Specific Player Object – Tif for Tat
• Developing an Interface to Run the Game
• Moving Beyond Tif for Tat – Fuzzy
Communications
• Some Final Comments on the Prisoner’s
Dilemma
7
REFERENSI
• http://msdn.microsoft.com/library/default.a
sp?url=/library/enus/dnvbdev00/html/vb00d20.asp -Inheritance
8
SELESAI
9