Head First C# Code: Chapter 5 Dinner Party DinnerParty_NoProperties.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace __DinnerParty
{
// This is the DinnerParty class from the beginning of the chapter
public class DinnerParty_NoProperties
{
const int CostOfFoodPerPerson = 25;
public int NumberOfPeople;
public decimal CostOfBeveragesPerPerson;
public decimal CostOfDecorations = 0;
public void SetHealthyOption(bool healthyOption)
{
if (healthyOption)
{
CostOfBeveragesPerPerson = 5.00M;
}
else
{
CostOfBeveragesPerPerson = 20.00M;
}
}