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
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