Question
Java Programming Create a subclass of ReadingMaterial called Manga- should call superclass constructors ------------------------------------------------------------------- -------------------------------------------------------------------- (this is what I made little bit..) public class Manga
Java Programming
Create a subclass of ReadingMaterial called Manga- should call superclass constructors
-------------------------------------------------------------------
--------------------------------------------------------------------
(this is what I made little bit..)
public class Manga extends ReadingMaterial{
/*
* constructor for class Manga and class its parent class constructor
*/
public Manga(){
super();
System.out.println("Manga class constructor");
System.out.println();
}
/*
* Display Method
*/
public void display(){
System.out.println("Display method of Manga is called");
}
}
Manga name: String author: String size: Rectangle numPages int typicalReadingorder: boolean Manga(publisher String, name: String, author: String, size:Rectangle numPages:int, typicalReadingorder: boolean) getName() String get Size(): Rectangle get NumPages(): int getAuthor(): String setName (String) void setSize (Rectangle) void setNumPages (int) void setAuthor(String) void get TypicalReadingorder(): boolean setTypicalReadingorder n) void to String String ReadingMaterial title True if back-to-front, false if front-to-backStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started