Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem Stalus public class Frinttena extends Merui ranchise nane then print the menu burga?icez, double burgerFrices) /The conatructer when you create the dbject, sets the
Problem Stalus public class Frinttena extends Merui ranchise nane then print the menu burga?icez, double burgerFrices) /The conatructer when you create the dbject, sets the prices, the Burger211 company has three franchises. (Bellevue, Seattle and Everett) * Burger21 1 sells 3 burgers (classBuraer, overndinaBulgconstructor-surged . Each franchise h to display the same style (format) of menu at their shops PrintMena(String name, double burgerericel, double All 3 burgers have a name and Kcal value This info can not be changed by any super.franchiseane ane this-price (burgerPricel, burgerPrice2, burgerPrice3) franchise .Only the price of the burgers can be decided changed by cach franchise. Menu contains the franchise name, all 3 burger names, their Kcal values, and their prices Sets the price for the Super Henu class public void price(double burgerPrice1, double burgerPrice2, double burgerPrice3) Your Mission Devclop a java system for the Burger211(Text Version). abstract class and constructor are minimum requirement. Your final submission . one super class (Java) o one sub class (java) public class tranchise l one Main program (java) public static void ain/String[] args) { abatract class Menu PrintMenu bellevue =new PrintMenu("Bollevue", 5.99, 4.75, 3.00); instances Declaration: franchiseName, burger name, price,Cal tring tranchisalane sets the burger info public void burgezinfoDi bargenanel-"clasBurger" public void printMena) bargerinfoD System.out-printinO yaten.out.printint /Jabatract method, ony thing that changes be8ides the franch SaeName pubiie abatract vosd price (double pricel. double pricez. doubla price3)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started