Can you help me solve these problems in java?
1. Problem 1
Design and implement a class called MonetaryCoin that is derived
from the Coin class presented in Chapter 5. Store a value in the monetary coin
that represents its value and add a method that returns its value. Create a
main driver class to instantiate and compute the sum of several MonetaryCoin
objects. Demonstrate that a monetary coin inherits its parent's ability to be
2. Problem 2
Writea class called AmericanKlingonDictionary that extends the Dictionary class discussed in class.
This new class will have variables such as publisher, year, and isbn and
methods such as standard getters and setters for the variables. Make sure these
variables are not accessible by classes other than Book, and Dictionary. In the main method, create a Dictionary object that
sets a number of pages and prints it out. Do the same for the number of
definitions. Now, create an AmericanKlingonDictionary object that sets a numbers of pages, a number of definitions,
publisher, year and isbn and prints them out.
Recently Asked Questions
- How do the clinical features of the coronary heart disease syndromes differ?
- How do heart rate, preload, afterload, and contractility affect cardiac output and cardiac workload?
- What are the expected side effects and common complications of chemotherapy and radiation therapy in an adult patient with leukemia?