Answered step by step
Verified Expert Solution
Question
1 Approved Answer
9.1.6 I'm not sure how to start. Please answer all parts using the given format. Thank you! 5 points Status: Not Submitted In this exercise,
9.1.6 I'm not sure how to start. Please answer all parts using the given format. Thank you!
5 points Status: Not Submitted In this exercise, you are going to use the Person and Student classes to create two objects, then print out all of the available information from each object Your tasks Create a Person object with the following information: o Name: Thomas Edison Birthday, February 11, 1847 Create a Student object with the following infromation: Name: Albert Einstein o Birthday: March 14, 1879 o Grade: 12 o GPA: 5.0 You do not need to modify the Person or Student class. 7 OP Status: Not Submitted 9.1.6: Person / Student Object QT Tint FILES Student.java Freed D PersonRunnerjava Person.java 1. public class Person { 2 3 private String name; 4 private String birthday: 5 6 public Person (String name, String birthday) { 8 this.name = name; 9 this birthday - birthday: 10 } 11 12 - public String getBirthday of 13 return birthday; 14 } 15 16. public String getName! 17 return name: 18 } 19 29 21] 22 Sere 120-0 31 MacBook Pro co ese 2 3 4 5 6 Status: Not Submitted 9.1.6: Person/Student Object SW a FILES 00 OWN 1 public class PersonRunner 2. { 3 public static void main(String[] args) 4- { // Start here! 6 } } D Studentjava PersonRunggrava D Person java end 0 31 MacBook Pro 30 GEO ano esc 3 2 4 6 0 Status: Not Submitted III FILES Student PersonRunner.java Person.java 9.1.6: Person / Student Object the St. Continue 1. public class Student extends Person 2 3 private int grade: 4 private double gpa; 5 6 public Student(String nane, String birthday, int grade, double go) 7 super(name, birthday); 8 this.grade - grade; 9 this.gpa-gpo; 10 11 12 public int getGrade! 13 return grade: 14 3 15 16 public double getGpa{ 17 ret opa; 18 3 19) 20 ) - Inh OP Co 31 MacBook Pro S 4 7 3 6 5 3 2 T R Y Q W E G H Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started