Guest User

Untitled

a guest
Dec 22nd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2.  
  3.     require 'Pessoa.php';
  4.  
  5.     class Aluno extends Pessoa{
  6.  
  7.         private $matr;
  8.         private $curso;
  9.  
  10.         public function cancelarMatr(){
  11.             $this->setMatr = false;
  12.         }
  13.  
  14.         public function getMatr(){
  15.             return $this->matr;
  16.         }
  17.  
  18.         public function setMatr($matr){
  19.             $this->matr = $matr;
  20.         }
  21.  
  22.         public function getCurso(){
  23.             return $this->curso;
  24.         }
  25.  
  26.         public function setCurso($curso){
  27.             $this->curso = $curso;
  28.         }
  29.  
  30.         public function __construct($matr){
  31.             $this->setMatr = true;
  32.         }
  33.     }
Add Comment
Please, Sign In to add comment