public static void Main()
MobilePhone = Iphone = new Iphone();
Console.WriteLine("Andrew has {0} and {1} passing yards.", andrewLuck.Championships, andrewLuck.PassingYards);
FormulaOneDriver fernandoAlanso = new FormulaOneDriver();
fernandoAlanso.Championships = 2;
fernandoAlanso.Name = "Fernando Alanso";
fernandoAlanso.Poles = 22;
fernandoAlanso.Wins = 32;
Console.WriteLine("Fernando Alanso has {0} Championships in his career, with {1} poles and {2} wins.", fernandoAlanso.Championships, fernandoAlanso.Poles, fernandoAlanso.Wins);
public abstract class Athlete
public string Name { get; set; }
public string Team { get; set; }
public string Sport { get; set; }
public float Weight { get; set; }
public float Height { get; set; }
public int Championships { get; set; }
public bool StillPlaying { get; set; }
public virtual void TrashTalk (){
Console.WriteLine("You suck");
public virtual void Titles (){
Console.WriteLine("I have won {0} Championships", Championships);
public class FootballPlayer : Athlete
public int TacklesPerGame { get; set; }
public int PointsPerGame { get; set; }
public string Position { get; set; }
public override void TrashTalk(){
Console.WriteLine("I crush fools like you son.");
public class Quarterback : FootballPlayer
public float PassingYards { get; set; }
public float RushingYards { get; set; }
public float QuarterbackRating { get; set; }
public class FormulaOneDriver : Athlete
public int Wins { get; set; }
public int Poles { get; set; }
public string Teamate { get; set; }
public override void TrashTalk(){
Console.WriteLine("Get your slow ass out of my way");