Page 1 of 1

Question: Create a class Book with the data members isbn, title, price. Create a class SpecialEdition which is subclass

Posted: Mon May 02, 2022 11:47 am
by answerhappygod
Question Create A Class Book With The Data Members Isbn Title Price Create A Class Specialedition Which Is Subclass 1
Question Create A Class Book With The Data Members Isbn Title Price Create A Class Specialedition Which Is Subclass 1 (75.25 KiB) Viewed 34 times
Question: Create a class Book with the data members isbn, title, price. Create a class SpecialEdition which is subclass of Book and with a data member discountRate. Create a class BookTest with main() to test the above classes Constructors & Methods: - Create constructors to give the values to the data members, Values shall come from user. - Create a method display() in Book class which displays isbn, title and price. - Override the same display() of Book class in SpecialEdition. This method displays isbn, btitle, price using super display() and display the discounted price. No. 1. Marks 75 1 2. 13 Task Create Book class and its data member Create SpecialEdition class and its data member Book and SpecialEdition constructors Create display() methods BookTest class 3. 14 4. 14 5. 73 . 6. Correct output /5 TOTAL / 20 Submission in Brighten: 1. JAVA files (.java) 2. Program screenshots and paste in docx file.