Question: i need the answer for 1,2. thank you. 1. Create a java class Book that has the same attributes and methods as the following UML.
1. Create a java class Book that has the same attributes and methods as the following UML. \begin{tabular}{l} \hline Book \\ - ISBN: String \\ + price; double \\ + Book (String, String double) \\ + cheap0: boolean \\ + print All Info0: void \\ \hline \end{tabular} - The Constructor initializes all the class attributes. - cheap0 returns true only if the price is below 50 S.R. - print_All_Infoo method prints all the attributes. 2. Inside the main method, create two objects of Book class that have the same data as in the below image. Then print them. class AnyName 1 public static
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
