Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write the answer, do not put pictures the code in java * If you can explain it by commenting, I would be grateful to

image text in transcribedimage text in transcribed

Please write the answer, do not put pictures

the code in java

* If you can explain it by commenting, I would be grateful to you

Book Implement the following classes: AudioBook -duration int -narrator:string +AudioBook(ti:string, au:string, du:int, na:string) +get Duration() :int +getNarrator(): string #title:string #author:string +Book(ti:string, au:string) +getTitle(): string +getAuthor():string WrittenBook en Pages:int *WrittenBook(ti:string, au:string, nprint) +getPages() sint PrintedBook EBook -isbn:int -hardCover: bool +PrintedBook (isbn:int, ti:string, au:string, np:int, hc:bool) +PrintedBook(ti:string, au:string, np:int) +get Isbn (): int + getCoverType(): string -size:int +EBook (ti:string, au:string, si:int) +getSize()int +print (): PrintedBook Class Book title and author: represent the title of the book and its author Bookti:string, au:string): a constructor that initializes title and author respectively Class Audio Book duration: length of the audio clip in minutes narrator: name of the person whose voice is recorded AudioBookti:string, au:string, du:int, na:string): initializes title, author, duration and narrator respectively Class Written Book count of the pages of the book Written Bookti:string, au:string, np:int): initializes title, author and nPages respectively Class PrintedBook isbn: stores the international standard book number 1 hardCover: it true if the book has a hardcover and false if it has paperback cover PrintedBook(isbn:int, ti:string, au:string, np:int, hc:bool): a constructor that initializes isbn,title, author, nPages and hardCover respectively PrintedBookti:string, au:string, np:int): a constructor that initializes title, author and nPages to the passed arguments respectively, and initializes isbn to 0 and hard Cover to false. Class EBook size: storage size of the ebook file in MBS EBookti:string, au:string, si:int): initializes title, author and size respectively print(): returns an object of type PrintedBook that has that same title, author and nPages as the current EBook

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago

Question

Question Can any type of stock or securities be used in an ESOP?

Answered: 1 week ago

Question

Question Can a self-employed person adopt a money purchase plan?

Answered: 1 week ago