check the below code and run it after completing the requirenment? Base classes: + Person ++ attributes:
Fantastic news! We've Found the answer you've been seeking!
Question:
check the below code and run it after completing the requirenment? Base classes: + Person ++ attributes: givenName (String), lastName (String), age (int), gender (String), citizenship (String) + Shape ++ attributes: width (double), height (double), radius (double), length (double) + Book ++ attributes: title (String), year (int), publish (String), pages (int) + Animal ++ attributes: name (String), weight (double), favouriteFood (String), age (int)
Required to extend from previous Base Classes the Children Classes.
Inheritance classes: + Person ++ Student +++ attributes: marks (double []), disciplines (String []) +++ methods: averageMarks(), displayDisciplines () ++ Lecturer +++ attributes: salary (double), disciplines (String []) +++ methods: annualSalary(), displayDisciplines () ++ Doctor +++ attributes: speciality (String) ++ Patient +++ attributes: diagnostic (String); inTime (String); prevTime (String); -------------------------------------------------------------------------------- + Shape ++ Rectangle +++ methods: area() ++ Circle +++ methods: area() ++ Triangle +++ methods: area() -------------------------------------------------------------------------------- + Book ++ EBook +++ attributes: url (String) ++ PhysicalBook +++ attributes: shelf (int), aisle (int), floor (int) +++ method: displayBookLocation() -------------------------------------------------------------------------------- + Animal ++ Lion +++ methods: makeSound() ++ Turtle +++ methods: makeSound() ++ Chameleon +++ methods: makeSound() Requirements: + Implement Accessors; + Implement Mutators; + Implement Basic Constructor; + Implement Parametric Constructor; + Implement methods required;
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: