Consider the following class definitions.
public Cat( String n, int a )
//implementation not shown
//implementation not shown
//implementation not shown
//other methods not shown
//client code in another class
Cat[] bunch = new Cat[5];
bunch[0] = new Cat("rocket", 8);
bunch[3] = new Cat("sam", 15);
bunch[4] = new Cat("ben", 12);
System.out.println( bunch[3].getAge() );