Question: Define a class Triangle with attributes base and height. Include a method area that returns the area of the triangle. Create an instance of the
Define a class Triangle with attributes base and height. Include a method area that returns the area of the triangle.
Create an instance of the Triangle class with a base of and height of and call its area method.
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
