Question: C# programming Language // 1) Define variable 3) Assign new object to variable 2) Create football team object // FootballTeam wuvLuvs = new FootballTeam(); //

C# programming Language

// 1) Define variable 3) Assign new object to variable 2) Create football team object // FootballTeam wuvLuvs = new FootballTeam();

// Create an instance of the FootballTeam class. FootballTeam wuvLuvs = new FootballTeam();

// Set field values of the football team. wuvLuvs.CityStadium = new Stadium(); wuvLuvs.HeadCoach = new Coach(); wuvLuvs.Location = "Wausau"; wuvLuvs.Name = "Wausau Wuv Luv's";

// Set field values of the city stadium. wuvLuvs.CityStadium.Capacity = 7650; wuvLuvs.CityStadium.ConcessionStand = new Stand(); wuvLuvs.CityStadium.Name = "City Stadium"; wuvLuvs.CityStadium.SouvenirStand = new Stand();

// Set field values of the concession stand. wuvLuvs.CityStadium.ConcessionStand.MoneyBalance = 350; wuvLuvs.CityStadium.ConcessionStand.QuantityOnHand = 500; wuvLuvs.CityStadium.ConcessionStand.QuantitySold = 0; wuvLuvs.CityStadium.ConcessionStand.Type = "Pizza";

// Set field values of the souvenir stand. wuvLuvs.CityStadium.SouvenirStand.MoneyBalance = 420.5m; wuvLuvs.CityStadium.SouvenirStand.QuantityOnHand = 150; wuvLuvs.CityStadium.SouvenirStand.QuantitySold = 0; wuvLuvs.CityStadium.SouvenirStand.Type = "Foam Beak";

// Set field values of the coach. wuvLuvs.HeadCoach.Name = "Bart"; wuvLuvs.HeadCoach.Salary = 325000;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!