subject

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: Name: Thomas Edison Birthday: February 11, 1847 Create a Student object with the following infromation: Name: Albert Einstein Birthday: March 14, 1879 Grade: 12 GPA: 5.0 You do not need to modify the Person or Student class. public class PersonRunner
{
public static void main(String[] args)
{
// Start here!
}
}
public class Person {
private String name;
private String birthday;
public Person (String name, String birthday)
{
this. name = name;
this. birthday = birthday;
}
public String getBirthday(){
return birthday;
}
public String getName(){
return name;
}
}
public class Student extends Person {
private int grade;
private double gpa;
public Student(String name, String birthday, int grade, double gpa){
super(name, birthday);
this. grade = grade;
this. gpa = gpa;
}
public int getGrade(){
return grade;
}
public double getGpa(){
return gpa;
}
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:20
Arectangular room is 4 meters longer than it is wide and its preimeter is 32 meters find the dimensions of the room
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
In this exercise, you are going to use the Person and Student classes to create two objects, then pr...
Questions
question
History, 22.02.2021 07:00
question
Mathematics, 22.02.2021 07:00
question
Mathematics, 22.02.2021 07:00