1 2 3 4 5 6 7
public class UsingPersonRecord { public static void main(String[] argv) { Person p = new Person("A","B",99); System.out.println(p); System.out.println(p.firstName()); } }