Guest User

Untitled

a guest
Nov 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. class Pessoa{
  2.    
  3.     private $nome;
  4.     private $sexo;
  5.     private $idade;
  6.    
  7.     public function getNome() {
  8.         return $this->nome;
  9.     }
  10.  
  11.     public function setNome($nome) {
  12.         $this->nome = $nome;
  13.     }
  14.  
  15.     public function getSexo() {
  16.         return $this->sexo;
  17.     }
  18.  
  19.     public function setSexo($sexo) {
  20.         $this->sexo = $sexo;
  21.     }
  22.  
  23.     public function getIdade() {
  24.         return $this->idade;
  25.     }
  26.  
  27.     public function setIdade($idade) {
  28.         $this->idade = $idade;
  29.     }
  30.    
  31. }
Add Comment
Please, Sign In to add comment