Skip to content

Instantly share code, notes, and snippets.

Created February 8, 2018 00:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/495bb25642718d4b6202dd049f4500e4 to your computer and use it in GitHub Desktop.
Save anonymous/495bb25642718d4b6202dd049f4500e4 to your computer and use it in GitHub Desktop.
<?php
require_once("Conexao.php");
class Pessoa {
protected $nome;
public function SetNome() {
$this->nome = $_POST['nome'];
}
public function GetNome (){
return $this->nome;
}
}
<?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