Question: Java Object Oriented Programming - Polymorphism with abstract Create a complete program with full programming code. Project: Covid-19 vaccine program Superclass Vaccine Attributes: -developer //e.g.

Java Object Oriented Programming - Polymorphism with abstract Create a complete program with full programming code. Project: Covid-19 vaccine program Superclass Vaccine Attributes: -developer //e.g. Prizer, Moderna, Sinovac -originCountry //e.g. US, Russia, China Methods: +Normal constructor tsetter, +getter,+toString +calPrice //Abstract method header Subclass mRNA-V Attributes: -vaccine Type //e.g. RNA, inactivated, non-replicating -storage //e.g. -70C, 2C -orderUnit //e.g. 1500pc, 500pc Methods: +Normal constructor +setter, +getter, +toString +calPrice // RNA = RM10 1pc, inactivated = RM8 1pc, // non-replicating = RM6 1pc Subclass Sputnik-V Attributes: -vaccine Type //e.g. RNA, inactivated, non-replicating -orderUnit //e.g. 1500pc, 500pc Methods: +Normal constructor +setter, +getter, +toString +calPrice // RNA = RM10 1pc, inactivated = RM8 1pc, // non-replicating = RM6 1pc The things inside application file: 1. Declare and create an array of objects to store five (5) data under mRNA-V and five (5) data under Sputnik-V then input the objects using polymorphism concept. 2. List vaccine information that required storage -70C. 3. Display the total price for the mRNA-V vaccine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
