Created
February 12, 2019 22:48
-
-
Save alvesoaj/9048f785f2683bea0ebd1b5320826865 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /* | |
| Definição da classe Pessoa: Pessoa.h | |
| */ | |
| #ifndef PESSOA_H | |
| #define PESSOA_H | |
| #include "string" | |
| using std::string; | |
| class Pessoa | |
| { | |
| public: | |
| Pessoa(); | |
| void setNome(string nome); | |
| string getNome(); | |
| void setIdade(int idade); | |
| int getIdade(); | |
| private: | |
| string nome; | |
| int idade; | |
| }; | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment