/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package konsolowa;

/**
 *
 * @author mateo
 */
public class Notatka {
    private static int liczbaNotatek = 0;
    private int id;
    protected String tytul;
    protected String tresc;
    
    Notatka(String _tytul, String _tresc) {
        liczbaNotatek++;
        id = liczbaNotatek;
        tytul = _tytul;
        tresc = _tresc;
    }
    
    public void pokazTytuliTresc() {
        System.out.println("-----------------------");
        System.out.println("Tytul: " + tytul);
        System.out.println("Tresc: " + tresc);
    }
    
    public void wyswietlDaneDiagnostyczne() {
        System.out.println(liczbaNotatek+";"+id+";"+tytul+";"+tresc);
    }
}
