TUGAS PEMROGRAMAN WEB 2 Disusun oleh : Nama : Findi Hardianty NIM : 20160810036 Kelas : Teknik Informatika B FAKULTAS ILMU KOMPUTER UNIVERSITAS KUNINGAN 2018 Program Encapsulation Syntax <?php class arithmetic { var $first=1000; var $second=500; function add() { $res=$this->first+$this->second; echo "Gaji Harian = ".$res."<br/>"; } function sub() { $res=$this->first-$this->second; echo "Gaji Lembur = ".$res."<br/>"; } function mult() { $res=$this->first*$this->second; echo "Ga...