Write a program in Java for the university consisting of the following categories: A mere Person classification contains the following variables: String name The person's name. 1 int id id number. 2 Write a constructor that receives the variables and a function (ID int , name String(add) where You receive the person's name and ID number and assign them. Write the Students class that inherits from the Person class containing the variables next: String Specialization The student's specialization. 1 double gpa student average. 2 Write a constructor that accepts the variables. (Two and a half degrees). Write the Employee class that inherits from the Person class containing the variables next: String jop The job name. 1 int salary 2 Write a constructor that accepts the variables. Create an interface for the program as shown in the following image
Write a program in Java for the university consisting of the following categories:
A mere Person classification contains the following variables:
String name The person's name. 1
int id id number. 2
Write a constructor that receives the variables and a function (ID int , name String(add) where
You receive the person's name and ID number and assign them.
Write the Students class that inherits from the Person class containing the variables
next:
String Specialization The student's specialization. 1
double gpa student average. 2
Write a constructor that accepts the variables. (Two and a half degrees).
Write the Employee class that inherits from the Person class containing the variables
next:
String jop The job name. 1
int salary 2
Write a constructor that accepts the variables.
Create an interface for the program as shown in the following image

Step by step
Solved in 2 steps with 2 images









