encapsulation / functional programming / object-oriented design / object-oriented programming / ocp / ood / oop / open closed principle / php
Exemplo interativo de programação orientada a objetos e princípios de design
Brinque com o código online aqui: http://codepad.viper-7.com/PWuLrw <?phpclass Tram { protected $passengers = array(); // Passenger in the parameters means only allow Passengers public function enterPassenger( Passenger $onePassenger ) { …
Continuar lendo