Question: Java jgrasp programming. I. Consider publications of books and magazines. Write a class called Publication Publication have attributes title, price and year. Include Book and
I. Consider publications of books and magazines. Write a class called Publication Publication have attributes title, price and year. Include Book and Magazine subclasses of Publication. Let an author be an attribute of Book while Magazine periodical information such as monthly, biweekly, or weekly. Book and Ma classes should have Publisher class to use. Let the attributes of Publisher be name and location. Book has Textbook and Reference as subclasses. Textbook subject and title as its attributes. Reference has its type such as url address and title attributes. Use appropriate modifiers like public, private or protected. Include a driver class called AppDriver. has gazine company has as its Draw a UML with has-a and is-a hierarchies among the classes clearly marked. a. b. Write all the above classes with attributes and methods. Use appropriate modifiers for all the attributes and methods. Include short explanation of each method by identifying input parameters and return types if applicable. C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
