public class Student{ //Define variable to store the name of the student String name; //Define the variable to store the age of the student int age; //Define the variable to store the gender of the student char gender; /******** Constructor Method ********/ public Student(String inName, int inAge, char inGender){ name = inName; age = inAge; gender = inGender; } /******** Accessor Methods ********/ //Accessor method to retrieve name public String getName(){ return name; } //Accessor method to retrieve age public int getAge(){ return age; } //Accessor method to retrieve gender public char getGender(){ return gender; } }