
QuestionAnswered step-by-stepNAME__________________________________________ INFO6066 Final Coding Question (25 marks)In this question you will be writing a super class and two sub classes and then writing a test class that will demonstrate polymorphic behavior.?OTE: 2 marks of the 25 are allocated for “Style and Following Directions”. All classes must have a documentation header. Utility (non-getter/setter) methods must have a full method documentation header.”All classes must compile or a mark of 0 will be assigned”Specifications for HeavenlyObject Class (5 Marks)- type: String – radius: double- name: String ______________________________________________________________ +HeavenlyObject( String: type, double radius)+HeavenlyObject(String:type, double radius, String name)+getRadius( ): double+getName(): String+getType(): String+setRadius(double: radius): void +setName( String: name):void+findPerimeter( ):double +findSurfaceArea( ): double+toString(): String?eavenlyObject?xamine the UML diagram for the super class HeavenlyObject that is shown below. This diagram shows what data variables and what methods will be found within the class. Using the information from the diagram write the code for the super class. NOTE: do not include any data members or methods in any class that are not in the UML diagram.??etails: For the two argument constructor set the default value for name to “unknown” The findPerimeter( ) method and findSurfaceArea( ) method will be abstract and will be over-ridden in the sub classes.For the toString( ) method, have the method return a String that reads?This heavenly object’s is a(n) type_goes_here
Get a plagiarism-free order today we guarantee confidentiality and a professional paper and we will meet the deadline.