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-back
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
