[ create a new paste ] login | about

Link: http://codepad.org/a42WgIT3    [ raw code | fork ]

PHP, pasted on Jul 1:
<?php 

namespace Test {

    class First extends Zero {}
    
    class Second {
    
        public function getMessage() {
            return 'Message from Second Class';
        }
    }
    
    abstract class Zero {
    
        public function __construct() {
        
            // Using a second class
            
            $second = new Second;
            
            print $second -> getMessage();
        }
    }  
}

?>


Create a new paste based on this one


Comments: