diff --git a/main.cpp b/main.cpp index e48fc44afca9caa92a9b15137c3c0193e97188fc..1c47e8820aff802f092261267bdc146d3d6222c0 100644 --- a/main.cpp +++ b/main.cpp @@ -5,6 +5,7 @@ #include "./sources/Biblioteca.hpp" #include "./sources/Livro.hpp" +#include "./sources/Periodico.hpp" using namespace std; diff --git a/sources/DescricaoObra.hpp b/sources/DescricaoObra.hpp index 7e839f07425c923198ce5e104bd3a9c0dd7d24b7..a58d412a563dcc6121d04b4826006b0f9c837b62 100644 --- a/sources/DescricaoObra.hpp +++ b/sources/DescricaoObra.hpp @@ -17,7 +17,7 @@ class DescricaoObra { // Contructor DescricaoObra() {}; DescricaoObra(const string& tipo, const string& titulo, int ano); - virtual void mostrarDetalhes() const; + virtual void mostrarDetalhes() const = 0; // Methods string getTitulo() const ;