Question: Instructions: This lab will test your knowledge of inheritance in Java 1. Using Netbeans (or your preferred IDE), create a class called Shape using the

Instructions: This lab will test your knowledge of inheritance in Java 1. Using Netbeans (or your preferred IDE), create a class called Shape using the following guide: public class Shape { private String name; public Shape(String name) { this.name = name; /** returns the name of the shape */ public String getName() { return name; /** returns the area of the shape */ public double getArea() { return 0.0; public void printDimensions({ System.out.println("No dimensions"); 2. Create 4 additional classes as follows: Shape Square Circle Triangle Equilateral Triangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
