Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Pessoa {
- public $nome;
- public $idade;
- public function Falar(){
- echo $this->nome." de " .$this->idade." acabou de falar";
- }
- }
- $geicy = new Pessoa();
- $geicy->nome = "Geicy Rodrigues";
- $geicy->idade = 21;
- $geicy->Falar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement