-
-
Save anonymous/495bb25642718d4b6202dd049f4500e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("Conexao.php"); | |
class Pessoa { | |
protected $nome; | |
public function SetNome() { | |
$this->nome = $_POST['nome']; | |
} | |
public function GetNome (){ | |
return $this->nome; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("Pessoa.class.php"); | |
require_once("Conexao.php"); | |
class PessoaFisica extends Pessoa{ | |
private $data; | |
private $CPF; | |
public function __construct () { | |
$this->data = $_POST['data']; | |
$this->CPF = $_POST['CPF']; | |
parent::SetNome(); | |
parent::GetNome(); | |
} | |
function insert (){ | |
} | |
} | |
$pessoa = new PessoaFisica(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment