// Class Declaration class Dog { // Instance Variables String breed; String size; int age; String color; String stekani; // method 1 public String getInfo() { return ("Rasa je: "+breed+ " steka " +stekani+ " Size is:"+size+" Age is:"+age+" color is: "+color); } public static void main(String[] args) { // inicializace Dog maltese = new Dog(); maltese.breed="Maltese"; maltese.size="Small"; maltese.age=2; maltese.color="white"; System.out.println(maltese.getInfo()); // inicializace Dog cojavim = new Dog(); cojavim.age = 5; cojavim.breed = "podvratak"; cojavim.stekani = "jako krava"; System.out.println(cojavim.getInfo()); } }