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:46 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 (77.46 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 dass 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 /5 2. 73 Task Create Book class and its data member Create SpecialEdition class and its data member Book and SpecialEdition constructors Create display() methods 3. 14 4. 14 5. BookTest class 73 6. Correct output 75 TOTAL 720 Submission in Brighten: 1. JAVA files (.java) 2. Program screenshots and paste in docx file.