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 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
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, 20.10.2020 16:01
question
English, 20.10.2020 16:01
Questions on the website: 13722363