#ifndef ESTUDIANTE_H #define ESTUDIANTE_H #include "Persona.h" class Estudiante : public Persona { private: std::string carne; double promedioPonderadoMatricula = 0.0; public: explicit Estudiante(const std::string& carne, const std::string& nombre, double promedioPonderadoMatricula = 0.0); friend std::ostream& operator<<(std::ostream& out, const Estudiante& estudiante) { return out << "Estudiante " << estudiante.nombre << ". PPM = " << estudiante.promedioPonderadoMatricula; } }; #endif // ESTUDIANTE_H