/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>
#include <string>

using namespace std;


class Ksiazka
{
    string tytul;
    string autor;
    int ileStron;
    
    public:
    Ksiazka(string tytul, string autor, int ileStron)
    {
        this->tytul = tytul;
        this->autor = autor;
        this->ileStron = ileStron;
    }
    
    void WyswietlDane()
    {
        cout << "Tytuł: " + tytul + "\nAutor: " + autor << endl;
        cout << "Strony: " + to_string(ileStron) << endl;
    }
};

class Kot
{
  string imie;
  string rasa;
  double waga;
  
  public:
  Kot(string imie = "Felek", string rasa = "syberyjski", double waga = 4.5)
  {
      this->imie = imie;
      this->rasa = rasa;
      this->waga = waga;
      
      cout << "Tworzę kota" << endl;
  }
  
  void WyswietlDane()
  {
      cout << "Imię: " << imie << endl;
      cout << "Rasa: " << rasa << endl;
      cout << "Waga: " << to_string(waga) << endl;
  }
    
};


class Osoba
{
    string imie;
    string nazwisko;
    
    int wiek;
    
    
    public:
    Osoba()
    {
       imie = "Jan";
       nazwisko = "Kowalski";
       wiek = 1;
       
       cout << "Uwaga! Tworzę nową osobę " + imie << endl;
    }
    
    
    void WyswietlDane()
    {
        cout << "Imię: " + imie << endl;
        cout << "Nazwisko: " + nazwisko << endl;
        cout << "Wiek: " + to_string(wiek) << endl;
    }
};

int main()
{
    Osoba osoba1;
    Osoba osoba2;
    
    osoba1.WyswietlDane();
    osoba2.WyswietlDane();
    
    
    Kot kot1;
    Kot kot2("Sali", "perski", 3);
    Kot kot3("Stefek");
    
    kot1.WyswietlDane();
    cout<<endl;
    kot2.WyswietlDane();
    cout<<endl;
    kot3.WyswietlDane();
    
    //Ksiazka ksiazka1;
    Ksiazka ksiazka1("Harry Potter", "JK Rowling", 350);
   
    
    ksiazka1.WyswietlDane();
    
    return 0;
}




