Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Karyawan
- {
- public $nama;
- public $alamat;
- public $gapok;
- public function __construct(){} //inisialisasi
- public function setNama($nm)
- {
- $this->nama=$nm;
- }
- public function getNama()
- {
- return $this->nama;
- }
- public function setAlamat($alm)
- {
- $this->alamat=$alm;
- }
- public function getAlamat()
- {
- return $this->alamat;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement