Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit fa52c46

Browse files
committed
PessoaFisica e PessoaJuridica
1 parent d2491bf commit fa52c46

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

cpp/lista2jordana/PessoaFisica.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "PessoaFisica.hpp"
2+
3+
PessoaFisica::PessoaFisica(string nome, string RG, string CPF, string end, string tel, string email)
4+
{
5+
this->setNome(nome);
6+
this->setRG(RG);
7+
this->setCPF(CPF);
8+
this->setEndereco(end);
9+
this->setTelefone(tel);
10+
this->setEmail(email);
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "PessoaJuridica.hpp"
2+
3+
// PessoaJuridica::PessoaJuridica(string nomeFantasia, string razaoSocial, string CNPJ, string end, string tel, string email)
4+
// {
5+
// this->setNomeFantasia(nomeFantasia);
6+
// this->setRazaoSocial(razaoSocial);
7+
// this->setCNPJ(CNPJ);
8+
// this->setEndereco(end);
9+
// this->setTelefone(tel);
10+
// this->setEmail(email);
11+
// }

cpp/lista2jordana/PessoaJuridica.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
using namespace std;
1111

12-
class PessoaJuridica: Pessoa, Organizacao
12+
class PessoaJuridica: Cliente, Organizacao
1313
{
1414
public:
1515
PessoaJuridica(string nomeFantasia, string razaoSocial, string CNPJ, string end, string tel, string email);

0 commit comments

Comments
 (0)