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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:30, HarryPotter10
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, Dweath50
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
image
Computers and Technology, 23.06.2019 20:40, aurikmah2005
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
image
Computers and Technology, 24.06.2019 00:40, ndurairajownkpq
What social factors affect your health
Answers: 3
You know the right answer?
Create a Person abstract class. The Person class must have a name, lastName and also an abstract cla...

Questions in other subjects:

Konu
Mathematics, 24.10.2019 19:43
Konu
Biology, 24.10.2019 19:43
Konu
Spanish, 24.10.2019 19:43
Konu
Mathematics, 24.10.2019 19:43
Konu
Advanced Placement (AP), 24.10.2019 19:43