StoryBook String category StoryBook( ) StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, String category) void setCategory(String category) String...


java programm



StoryBook<br>String category<br>StoryBook( )<br>StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity,<br>String category)<br>void setCategory(String category)<br>String getCategory(O.<br>TextBook<br>int standard<br>TextBook( )<br>TextBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity,<br>int standard)<br>void setStandard(int standard)<br>int getStandard( )<br>Start<br>The start class contains the main method. Inside the main method, create two objects of StoryBook<br>and two objects of TextBook. Demonstrate all the methods and constructors.<br>

Extracted text: StoryBook String category StoryBook( ) StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, String category) void setCategory(String category) String getCategory(O. TextBook int standard TextBook( ) TextBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, int standard) void setStandard(int standard) int getStandard( ) Start The start class contains the main method. Inside the main method, create two objects of StoryBook and two objects of TextBook. Demonstrate all the methods and constructors.
Lab Task - 5: Developing a basic Java program with Inheritance.<br>Look at the following class diagram and class notations carefully, and develop the program.<br>StoryBook<br>Вook<br>TextBook<br>Class Diagram<br>Вook<br>String isbn<br>String bookTitle<br>String authorName<br>double price<br>int availableQuantity<br>Book( )<br>Book(String isbn, String bookTitle, String authorName, double price, int availableQuantity)<br>void setlsbn(String isbn)<br>void setBookTitle(String bookTitle)<br>void setAuthorName(String authorName)<br>void setPrice(double price)<br>void setAvaiableQuantity(int availableQuantity)<br>String getlsbn( )<br>String getBookTitle()<br>String getAuthorName( )<br>double getPrice( )<br>int getAvailableQuantiry( )<br>void addQuantity(int amount)<br>void sellQuantity(int amount)<br>void showDetails( )<br>

Extracted text: Lab Task - 5: Developing a basic Java program with Inheritance. Look at the following class diagram and class notations carefully, and develop the program. StoryBook Вook TextBook Class Diagram Вook String isbn String bookTitle String authorName double price int availableQuantity Book( ) Book(String isbn, String bookTitle, String authorName, double price, int availableQuantity) void setlsbn(String isbn) void setBookTitle(String bookTitle) void setAuthorName(String authorName) void setPrice(double price) void setAvaiableQuantity(int availableQuantity) String getlsbn( ) String getBookTitle() String getAuthorName( ) double getPrice( ) int getAvailableQuantiry( ) void addQuantity(int amount) void sellQuantity(int amount) void showDetails( )

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here