Must be written in Java, use either NetBeans or Eclipse
please
What Will You Learn
Using inheritance to reuse classes
Deliverables Person.java eeuapn5 StudentAthlete.java App.java
Contents
person First name Lait nane her ino
tudent-thete ob
EMajar Gm...
persons
68
Shosni-et sports" senkere setirtoll:
Using inheritance and the classes (below)
The Person class has first name ast name age hometown a method called getInfo0 that returns all attributes from person as a String The Student class is a person with an id and a major and a GPA Student has to call super passing the parameters for the super class constructor a method called getInfo that returns all attributes from student as a String this methods has to override the method getInfo0 in person
a ranking (a random number between 0 and 100) StudentAthlete has to call super passing the parameters for the super class constructor a method called getInfo0 that returns all attributes from student-athlete as a String
Create an application (app) that:
Creates one StudentAthlete object. Displays all information about the StudentAthlete object Does it in the most efficient way possible (avoids unnecessary duplication of attributes and methods) Uses the classes App Person Student inheriting from person * StudentAthlete inheriting from student