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.

Java Program Make a class that takes a string containing the names

#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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!