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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

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

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,