Created
August 26, 2015 03:05
-
-
Save phpfiddle/ca69ad3573cf8b68cc39 to your computer and use it in GitHub Desktop.
[ Posted by Pramod Kadam ] Code refactoring
This file contains 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 | |
class First{ | |
public function printP(){ | |
print('P is great!'); | |
} | |
} | |
class Second{ | |
public function printP(){ | |
print('P is great!'); | |
} | |
} | |
$first = new First(); | |
$second = new Second(); | |
$first->printP(); | |
$second->printP(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment