Question: Build a class called Procedure.java. This class should have the following properties:procCode, procName, description and price. Also add the appropriate set and get methods, display

 Build a class called Procedure.java. This class should have the following

Build a class called Procedure.java. This class should have the following properties:procCode, procName, description and price. Also add the appropriate set and get methods, display method, toString method and main method, Main() should be used to test this class. Also add 2 constructors to the Procedure class. One that takes no arguments and initializes the data to all 0s and ""(empty strings). And one constructor that takes all arguments. Lastly in the main() method instantiate a Procedure object by calling the constructor that takes all 4 arguments, then call the display method to display the data. Main Testing Code Rightarrow Procedure p1: p1 = new Procedure("P114", "Cleaning ", "Clean all teeth", 450,00): p1.display()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!