Question: Make a RightAngleTriangle java class containing following elements: declare base and height as data members with private keyword define a default constructor define another constructor
Make a RightAngleTriangle java class containing following elements:
declare base and height as data members with private keyword
define a default constructor
define another constructor with arguments
define a setter and getter methods for each instance variable
define a method to set both base and height
define a toString method overriding toString method of Object class
define an equals method overriding equals method of Object class
Make a Tester class containing main method to test all the methods of the RightAngleTriangle class. Create an array with elements of RightAngleTriangle objects and print them. Create two RightAngleTriangle objects and compare them. Also generate java documentation using Javadoc command.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
