Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created August 26, 2015 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpfiddle/ca69ad3573cf8b68cc39 to your computer and use it in GitHub Desktop.
Save phpfiddle/ca69ad3573cf8b68cc39 to your computer and use it in GitHub Desktop.
[ Posted by Pramod Kadam ] Code refactoring
<?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