Question: CMPS 260 Fall 2018 Programming Assignment #10 (2018.11.01) 1 of 3 CMPS 260, Fall 2018 Programming Assignment #10 (75 points) Due Dat As indicated on



CMPS 260 Fall 2018 Programming Assignment #10 (2018.11.01) 1 of 3 CMPS 260, Fall 2018 Programming Assignment #10 (75 points) Due Dat As indicated on CMPS 260 Moodle site. The coding for the solution to the following problem is to be done by you and only you. You may discuss the requirements of this project, Java, or Inteilij with anyone, but you must code your own solutions. You may use text, class notes and examples, and online Java resources. You may discuss your code with the instructor, TAs or mentors, but no one eise. The project is to be created using IntelliJ in Oracle Java 10 The purpose of this assignment is to become familiar with inheriting an abstract class 1. Download the ZIP archive "pa10zip" from Moodle, then extract (copy/paste for you Windows users) the contained Intellij project folder ("pal0"). Once extracted, open the Intellij project folder ("pal0") in Intellij. 2. Create two out of the three classes described below, inheriting class AbstractLine into them. (a) Square This class uses length of AbstractLine as the side length of the square. The volume returned is zero. (b) Rectangle This class uses length of AbstractLine as the length of the rectangle. A height value must be added, along with its getter (accessor) and setter (mutator). The volume returned is zero. () Sphere -This class uses the line length as the radius, but adds extra getter (accessor) and setter (mutator) methods for radius. An additionalradius data member is NOT added. . In class Main, create reference variables and objects of each of the two classes that you created then (a) demonstrate that inherited getter (accessor) methods work by passing the references to the class objects as the actual parameter used in calls to the method showAivalues. (b) demonstrate that inherited setter (mutator) methods and any methods unique to the classes work by using the reference variables to call these methods (c) demonstrate that any changes made by calls to setter (mutator) methods work by again calling the showAlalues method and any unique to the class getter (accessor) methods. No values of data members of the classes can be allowed to fall below zero. All classes must have default and parametrized constructors with appropriate super calls to the .The code of class AbstractLine and method showAlValues may not be changed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
