Question: Design a class named Cake. Data fields include two string fields for cake flavor and icing flavor and numeric fields for diameter in inches and
Design a class named Cake. Data fields include two string fields for cake flavor and icing flavor and numeric fields for diameter in inches and price. Include methods to get and set values for each of these fields. Create the class diagram and write the pseudo-code that defines the class. What components and attributes will need to be included in your cake class? Why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
