class

Run Settings
LanguagePHP
Language Version
Run Command
<?php class Hewan { // property public $bernafas = 'Paru-paru'; public $berjalan; // method public function berjalan($pipit){ echo $this->berjalan=' terbang'; return $pipit; $kaki=1; } public function nafas(){ return $this->bernafas; } } $burung = new Hewan; // untuk mengakses property class menggunakan tanda '->' diikuti nama property tanpa tanda $ echo $burung->nafas(); echo $burung->berjalan('burung');
Editor Settings
Theme
Key bindings
Full width
Lines