Last active
February 25, 2017 23:15
-
-
Save ilhamarrouf/308c1efd6843827d0fc57f8989330c02 to your computer and use it in GitHub Desktop.
OOP PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait daftarRumus | |
{ | |
public function luas_persegi() | |
{ | |
return "ini luas persegi"; | |
} | |
} | |
class Rumus | |
{ | |
use daftarRumus; | |
} | |
$rumus = new Rumus(); | |
echo $rumus->luas_persegi(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment