Question: Please help with java program Class: Geometric Solid Graphical User Interface Important: Do not create a main method in this file. Do not create fields
Please help with java program
-
Class: Geometric Solid Graphical User Interface
Important: Do not create a main method in this file. Do not create fields or instance variables in this file.
- Create Method: Geometric Solid Selection which is a graphical user interface that displays a dropdown list containing choices: Cylinder, Sphere, and Cube. The method will return the value selected.
- Create Method: Units Selection which is a graphical user interface that displays a dropdown list containing choices: mm, inches, cm, feet, and meters. The method will return the value selected.
- Create Method: Material Selection which is a graphical user interface that displays a dropdown list containing choices: Copper, Steel, Aluminum, Plastic, and Titanium. The method will return the value selected.
public class GeometricSolid { //VARIABLES private String description; private String units; private String material; // CONSTRUCTORS GeometricSolid() { description = "Description"; units = "inches"; material = "Copper"; } GeometricSolid(String description, String units, String material) { this.description = description; this.units = units; this.material = material; } // METHODS public void setDescription(String description) { this.description = description; } public String getDescription() { return(this.description); } public void setUnits(String units) { this.units = units; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
