subject
Computers and Technology, 22.11.2021 22:50 ray1840

Create a Person abstract class. The Person class must have a name, lastName and also an abstract class called getDescription() that returns a String. Create a Student class that extends the Person abstract class. Besides the properties that they inherit, for each student you must also have a courseGrade (in a percentage format i. e. 90%). For all fields you must create appropriate getters and setters and you should use appropriate access modifiers so that you use encapsulation. You must implement the getDescription function so that it returns a message: " has a grade of ", substituting all text inside <> with the equivalent values of each field.

Create a Lecturer class that extends the Person abstract class. Besides the properties that they inherit, each Lecturer must also have an ArrayList with the courses that the lecturer teaches. For all fields you must create appropriate getters and setters and you should use appropriate access modifiers so that you use encapsulation. You must implement the getDescription function so that it returns a message: " is teaching the following courses: with the equivalent values of each field.

Create a class called MainClass. Inside you must implement a main method that creates instances of the Lecturer and Student classes and invokes the method of the getDescription on each of them.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
You know the right answer?
Create a Person abstract class. The Person class must have a name, lastName and also an abstract cla...
Questions
question
Chemistry, 01.04.2021 01:00
question
Mathematics, 01.04.2021 01:00
question
Mathematics, 01.04.2021 01:00
Questions on the website: 13722367