A publishing house prints and distributes two types of publication: books and journals. Each book has a title, an author, an edition number, and an ISBN. Each journal has a title, a volume number, an issue number, and an ISBN. Each of these publication have a statement that prints their properties i. Design the classes needed for the problem specification above using UML class diagram. ii. Convert your UML class diagram in question (1i) into a java program. Create a test class and print out details about the object of the classes. The following object oriented concepts should be used in your program. Data encapsulation, Method Overriding, Method Overloading, Inheritance, Polymorphism, Super to call a constructor and Super to call a method. Please comment your code to show how each of these concepts have been applied. iii. Using your classes in question (1ii), draw a UML sequence diagram to show sequence of interaction between objects at runtime (that is, the flow of controls by method calls)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

A publishing house prints and distributes two types of publication: books and journals.

Each book has a title, an author, an edition number, and an ISBN. Each journal has a

title, a volume number, an issue number, and an ISBN. Each of these publication have a

statement that prints their properties

i. Design the classes needed for the problem specification above using UML class

diagram.

ii. Convert your UML class diagram in question (1i) into a java program. Create a

test class and print out details about the object of the classes. The following

object oriented concepts should be used in your program. Data encapsulation,

Method Overriding, Method Overloading, Inheritance, Polymorphism, Super to

call a constructor and Super to call a method. Please comment your code to

show how each of these concepts have been applied.

iii. Using your classes in question (1ii), draw a UML sequence diagram to show

sequence of interaction between objects at runtime (that is, the flow of controls

by method calls)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Software Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning