- Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes. If your product does not already have a name property, you will need to add one along with appropriate get- and set-methods.
- Modify your program so that at an appropriate point in the ordering process, the program requests the name or kind of product. At that point, the correct kind of product class needs to be instantiated. Polymorphism should ensure that the correct kind of size information or method is used.
- Modify your program so that it requests 3 products. Create an array of products and save all of the product instances in this array. You might want to think about how an indefinite number of product orders might be handled. However, do not implement this extension for this course.
- You will need to change how you handle file output or input. Instead of creating or writing a new file for each product, you need to create an empty file when the program starts. Each new product should then be added to the file. You no longer need to create the confirmation dialog based on data that are read back in after each individual product is ordered. Instead, you will confirm the entire 3-product order after all 3 product orders have been completed. This can be done by reading the order file and displaying or confirming the product orders one after another.
- You must revisit your UML diagrams one last time and revise them to represent the final online ordering system in structural diagrams (the class diagrams) and in a behavioral diagram (the use case diagram).
New Content for Week 5
The Phase 5 Individual Project deliverables are as follows:
- Save the final program code that you just developed and ran successfully in a .zip file that includes all of your Java project files.
- Update the Key Assignment design document title page with a new date and project name.
- Update your previously completed work based on your instructor’s feedback.
- Perform a screen capture of each of the ordering system dialogs that are displayed during execution just after you have entered the requested information. Place these screen captures in Week 5: Inheritance and Polymorphism.
- Review and revise your class diagrams and use case diagrams where appropriate to include the new program organization and structure.
For a custom paper on the above topic, place your order now!
What We Offer:
• On-time delivery guarantee
• PhD-level writers
• Automatic plagiarism check
• 100% money-back guarantee
• 100% Privacy and Confidentiality
• High Quality custom-written paper
You May Also Like This:
- three classes that extend Shape called Circle, Rectangle and RightTriangle
- website for ALDI project
- program by C#
- SAS dataset. Q2
- Use Cases
- Report about banking systems for loans.
- MBA-Marketing Target Segment and Strategy
- menu of options
- Bloodhound Supersonic Car.
- Project Execution
- Statistical Program for the Social Sciences
- LED values
- 5pm is an easy way to manage your projects and tasks, share files and notes
- Winsome Manufacturing Company
- Building an Access Control System
- Data Manipulation Language &Queries
- Real Estate Data
- resource-constrained network
- strategic business plan
- how the financial aid process works
- Beam forming of a US phased array system
- Comparing the growth rates of Asia to those of Western Europe.
- Website Migration Project
- Database and Data Warehousing Design
- Domino Game.
- Program Proposal Presentation
- Risk: Frequency Distribution, Probabilities, and Expected Value Case
- IC Map
- Latin America
- QUANTITATIVE ANALYSIS