Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Veiculo{
- public $modelo;
- public $cor;
- public $ano;
- private function Andar(){
- echo $this->modelo." andou";
- }
- public function Parar(){
- echo $this->modelo." parou";
- }
- public function mostarAcao(){
- $this->Andar();
- }
- }
- $carro = new Veiculo;
- $carro->mostarAcao();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement