/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
 */
package konsolowa;

import java.util.Scanner;

/**
 *
 * @author mateo
 */
public class Konsolowa {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        System.out.println("Liczba zarejestrowanych osób to " + Osoba.liczbaOsob);
        
        Osoba osoba1 = new Osoba("Tomasz", 3);
        Osoba osoba2 = new Osoba();
  
        Scanner sc = new Scanner(System.in);
        System.out.print("Podaj imie: ");
        String imie = sc.nextLine();
        
        System.out.print("Podaj id: ");
        int id = sc.nextInt();
        
        Osoba osoba3 = new Osoba(imie, id);
        Osoba osoba4 = new Osoba(osoba1);
        
        osoba1.przedstawSie("Jan");
        osoba2.przedstawSie("Jan");
        osoba3.przedstawSie("Jan");
        osoba4.przedstawSie("Jan");
        System.out.println("Liczba zarejestrowanych osób to " + Osoba.liczbaOsob);
    }
    
}
