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
Step: 1
Get Instant Access with AI-Powered 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