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.
Answers: 3
Computers and Technology, 21.06.2019 16:30
Margins can be modified in the page layout tab or by using
Answers: 2
Computers and Technology, 22.06.2019 08:00
What is the algorithm for building a binary tree program
Answers: 2
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
Create a Person abstract class. The Person class must have a name, lastName and also an abstract cla...
Advanced Placement (AP), 19.01.2022 19:00
Social Studies, 19.01.2022 19:10
Mathematics, 19.01.2022 19:10
Physics, 19.01.2022 19:10
English, 19.01.2022 19:10
Social Studies, 19.01.2022 19:10
Spanish, 19.01.2022 19:10
Mathematics, 19.01.2022 19:20