Facebook
From dfdfsfds, 1 Month ago, written in Plain Text.
This paste is a reply to Jeehhe from Hwhh - go back
Embed
Viewing differences between Jeehhe and Re: Jeehhe
https://dysk.agh.edu.pl/s/GXJYcRjWbc6qJD7?dir=undefined&path;=/&fbclid=IwAR0KI4d00slOteSeiASHflHoOGZZTV-L0QjrwJ5-2uUBvA8CG8qPOTjEXAA&openfile=8971117#include <iostream>
#include <string>

using namespace std;

class Person 
{
    private:
        string imie;
        string nazwisko;
        string pesel;
    public:
        Person(string imie="", string nazwisko="", string pesel){}
    string get_imie() const {
        return imie;
    }
    string get_nazwisko() const{
        return nazwisko;
    }
    string get_pesel {
        return pesel;
    }
    string to_string() const{
        return "Osoba: " + imie + "" + nazwisko + "Pesel: " + pesel; 
    }
};

class Student : public Person
{   
    public:
        Student(string nr_indeksu, string kierunek_studiow) : Person(imie), Person(nazwisko), Person(pesel);
};

int main()
{
    
}