Question: Java Program Make a class that takes a string containing the names of authors,title, and a year passed in to put them in an array.
Java Program
Make a class that takes a string containing the names of authors,title, and a year passed in to put them in an array. Then write the next 5 subclasses to set its attributes and override the toString() so it can display the information. Refer to UML for help.

#author : Author[] get>> # title : String get>> #year: int get >> + Citation(String, String, int) + toString0 Website - url : String get - month : String get -day: intget Newspaper Book # publisher : String get Journal -journalName: String get - volume : intget -startPage: int get - endPage: int get - newspaper : String get - month: String get -day: int get Chapter - chapterName : String get - chapterNumber : intget>> - startPage: intget - endPage : intget #author : Author[] get>> # title : String get>> #year: int get >> + Citation(String, String, int) + toString0 Website - url : String get - month : String get -day: intget Newspaper Book # publisher : String get Journal -journalName: String get - volume : intget -startPage: int get - endPage: int get - newspaper : String get - month: String get -day: int get Chapter - chapterName : String get - chapterNumber : intget>> - startPage: intget - endPage : intget
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
