Minimal starter: just enough to compile. Implement the classes so tests pass.
./gradlew test # macOS/Linux
gradlew.bat test # Windows- Create a
Shapeinterface withdouble getArea()(already provided). - Complete
Circle,Rectangle,Triangleso that:- Constructors accept dimensions.
getArea()returns the correct area.
- In
ShapeHierarchy.main, create a few shapes and print their areas. - Edge cases: Treat negative dimensions as
0for this lab.
Hints: Use encapsulation (private fields) and keep logic in methods.