SHARE
TWEET

1

a guest Jun 24th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class hobi{
  3.  static $nama_hobi="Daftar Nama Hobi";
  4.  static function membaca(){
  5.    echo "saya suka membaca buku";
  6.  }
  7.  static function nonton(){
  8.    echo "saya suka nonton bioskop";
  9.  }
  10. }
  11.  
  12. echo hobi::$nama_hobi;
  13. echo hobi::membaca();
  14. echo hobi:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top