Question: in java 1) Write a java program to perform the following (2.5 marks) a) (i) Create a class Book (ii) Create 3 fields Number, Name
in java

1) Write a java program to perform the following (2.5 marks) a) (i) Create a class "Book" (ii) Create 3 fields "Number", "Name" and "Prize" (use the data from the table below to define proper User defined types) b) Using Constructor initialize the object c) Use Accessor Method to get / read the value d) Use Mutator Method to set the value e) (i) Create a method "Show" to print the value (ii) Create 3 objects and show the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
