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)
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)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images