Challenge 1: Calculating the Area
Explore how to write a Java class with variables, overloaded constructors, and member methods to calculate the area of a right-angled triangle. This lesson helps you practice fundamental object-oriented concepts and apply them to solve a basic geometric problem.
We'll cover the following...
We'll cover the following...
Problem statement
Basic maths is something we all learned in our early years. Areas of shapes, their perimeters and so on! Today, we want you to calculate the area of the right-angled ...