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 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
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
Mathematics, 17.10.2020 23:01
question
Mathematics, 17.10.2020 23:01
question
Mathematics, 17.10.2020 23:01
question
French, 17.10.2020 23:01
Questions on the website: 13722363