Question: I just want the code Write a java program using BlueJ: a) Create a class shop that contains 2 fields item of type String and
Write a java program using BlueJ: a) Create a class shop that contains 2 fields item of type String and Price of type double. b) Define a constructor to set the item to biscuit and Price to 10.5 respectively. c) Define an Accessor method showDetails () to display the class data. Define a Mutator method updatePrice( ) to change the price. d) Create 2 objects T1 and T2 of the class and call its methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
