|
Projeto Biblioteca POO - PV26465
|
Classe que representa um estudante na biblioteca. More...
#include <Estudante.h>
Public Member Functions | |
| Estudante (string n, string i) | |
| Construtor da classe Estudante. | |
| virtual | ~Estudante () |
| Destrutor da classe Estudante. | |
| int | getLimiteEmprestimos () const override |
| Obtém o limite de empréstimos do estudante. | |
| float | getDescontoMulta () const override |
| Obtém o desconto da multa do estudante. | |
| bool | podeProrrogar () const override |
| Verifica se o estudante pode prorrogar o empréstimo. | |
| void | editarInformacoes () override |
| Edita as informações do estudante. | |
| string | getTipo () const override |
| Obtém o tipo do leitor. | |
Public Member Functions inherited from Leitor | |
| Leitor (string n, string i) | |
| Construtor da classe Leitor. | |
| virtual | ~Leitor () |
| Destrutor da classe Leitor. | |
| list< Emprestimo * > | getEmprestimos () const |
| string | getNome () const |
| Obtém o nome do leitor. | |
| void | adicionarEmprestimo (Emprestimo *e) |
| Adiciona um empréstimo à lista de empréstimos do leitor. | |
| void | removerEmprestimo (Emprestimo *e) |
| Remove um empréstimo da lista de empréstimos. | |
| void | LimparTodosEmprestimos () |
| Limpa todos os empréstimos. | |
| string | getID () const |
| Obtém o ID do objeto Leitor. | |
| vector< Emprestimo * > | getHistoricoEmprestimos () const |
| Obtém o histórico de empréstimos do leitor. | |
Private Attributes | |
| int | limiteEmprestimos = 10 |
Additional Inherited Members | |
Protected Attributes inherited from Leitor | |
| string | nome |
| string | id |
| list< Emprestimo * > | emprestimos |
| vector< Emprestimo * > | historico_emprestimos |
Classe que representa um estudante na biblioteca.
Esta classe herda de Leitor e adiciona funcionalidades específicas para estudantes
| Estudante::Estudante | ( | string | n, |
| string | i ) |
Construtor da classe Estudante.
| n | Nome do estudante. |
| i | Identificador do estudante. |
|
virtual |
Destrutor da classe Estudante.
|
overridevirtual |
Edita as informações do estudante.
Implements Leitor.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Verifica se o estudante pode prorrogar o empréstimo.
Implements Leitor.
|
private |