Task 1: Design a Class Author as shown in the diagram: Singer FirstName: String MiddleName: String LastName: String Date of birth: int Singer (FirstName: String, MiddleName: String, LastName: String ,...


Task 1: Design a Class Author as shown in the diagram:<br>Singer<br>FirstName: String<br>MiddleName: String<br>LastName: String<br>Date of birth: int<br>Singer (FirstName: String, MiddleName: String, LastName: String , YoB: int)<br>getFirstName<br>getMiddleName<br>getlastName<br>getYoB, setYoB<br>toString<br>Class Author contains:<br>Four member variables: First Name, Middle Name, Last Name and year of birth. (1 Mark)<br>A constructor to initialize the four member variables. (2 Marks)<br>Getters and Setters. (1.25 Mark)<br>A toString method that returns

Extracted text: Task 1: Design a Class Author as shown in the diagram: Singer FirstName: String MiddleName: String LastName: String Date of birth: int Singer (FirstName: String, MiddleName: String, LastName: String , YoB: int) getFirstName getMiddleName getlastName getYoB, setYoB toString Class Author contains: Four member variables: First Name, Middle Name, Last Name and year of birth. (1 Mark) A constructor to initialize the four member variables. (2 Marks) Getters and Setters. (1.25 Mark) A toString method that returns "first name middle name last name at date of birth) example: "Roxane Joseph Mallouhy at 1976". (1 Mark) Task 2: design a class Poem that inherits from Author class Poem Class contains: One member variable: PoemName. (1.25 Mark) A constructor that initialize the poem name and all the variables from the superclass. (2.5 Marks) Getters and setters. (0.5 Marks) A toString method that returns "PoemName by Author". N.B: The toString method should use the toString of the superclass(1 Mark). PoemName: String Poem (Poem Name, All the variables in the superclass) getPoemName setPoemName toString

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here