public class Person { private String name; private int age; // v tomto ILUSTRAČNÍM příkladu výjimečně "public" public static int peopleCount = 0; public Person(String name, int age) { this.name = name; this.age = age; peopleCount++; } public static int howManyPeople() { return peopleCount; } }