Given the following class and array declaration, how would you print out the age of the 10th person in the array?
class personClass {
public:
void setAge(int newAge);
void setGender(char newGender);
void setSalary(float newSalary);
int getAge();
char getGender();
float getSalary();
private:
int age;
char gender;
float salary;
}
personClass[] people = new personClass[100];
a. System.out.println(people[10]);
b. System.out.println(people[9]);
c. System.out.println(people[9].age);
d. System.out.println(people[9].getAge());