Question: 2. Design a class named Publication and its three subclasses named Article, Book, and TechReport. A publication has an author name, title, and year. An

2. Design a class named Publication and its three subclasses named Article, Book, and TechReport. A publication has an author name, title, and year. An article has journal name, pages number (from which page number until which number), and volume. A book has edition, publisher. A technical report class has an address or institution of the author and report number. Override the toString method in each class to display the all the properties.

Draw the UML diagram for the classes. Implement the classes.

Write a test program that creates a Publication, Article, Book, and TechReport and invokes their toString() methods.

(UML DIAGRAM IN JAVA, NOT FULL PROGRAM) THANKS NEED FULLY RELATIONSHIP

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!