Question: - + 16096 The following is the data type class Triangle that is defined to hold the information of a triangle and some actions access
- + 16096 The following is the data type class Triangle that is defined to hold the information of a triangle and some actions access those information. However, the class Triangle is not complete yet. public class Triangle priviate double base; private double height //. -argument constructor //C. parameter constructor //D.method calculate area of triangle //E. method toString to create the string output of a triangle In a word document, provide the answers of the following questions: 1. What is the name to call lines listed in a. Select good answers: 2. Provide the code of no-argument constructor, parameter constructor 3. Provide the code of mutator methods and accessor methods of variables, base and height 847AM /2/2018 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
