Question: / / Creates a Breakfast class / / and instantiates an object / / Displays Breakfast special information using static System.Console; class FixedDebugNine 2 {
Creates a Breakfast class
and instantiates an object
Displays Breakfast special information
using static System.Console;
class FixedDebugNine
static void Main
Breakfast special new BreakfastFrench toast, ;
Display the info about breakfast
WriteLineINFO;
then display today's special
WriteLineToday we are having for
special.name, special.Price.ToStringC;
class Breakfast
public string INFO
"Breakfast is the most important meal of the day.";
private string name;
private double Price;
Breakfast constructor requires a
name, eg "French toast", and a price
public Breakfaststring name, double price
name name;
price price;
public string Name get; set
public double Price get; set
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
