Question: Implement a Java class called Book using the below UML diagram: Book title:String author:String publication Year:int numberOfPages: int price:double Book() Book(--all parameters) getAge():int displayinfo(): void

Implement a Java class called Book using the below UML diagram: Book title:String author:String publication Year:int numberOfPages: int price:double Book() Book(--all parameters) getAge():int displayinfo(): void Where getAge() method returns the number of years since the book was published; i.e. a book published in 2010 has an age of 11 years. In the driver program, create 3 book objects whose data should be read from user. Display the age of each book and then display the info of all books
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
