Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @author Andres Galindo
- * @copyright 2009
- */
- interface absPlugin
- {
- public function Go();
- }
- class PornPlugin implements absPlugin
- {
- //Produces error, not the same scope!
- private function Go()
- {
- }
- }
- class AnotherPornPlugin implements absPlugin
- {
- //Produces error! interface method
- //doesn't contain a variable
- public function Go($do)
- {
- }
- }
- class YetAnotherPornPlugin implements absPlugin
- {
- //This class will error because it doesn't have the Go
- //function
- public function Gob()
- {
- }
- }
- class TheFinalPornPlugin implements absPlugin
- {
- //This one will work fine
- public function Go()
- {
- }
- }
- ?>
Add Comment
Please, Sign In to add comment