6 CardDemo.Program (2/2) Card diamond_10 = new Card(); Card diamond_10 = new Card(); diamond_10.SetSuit( d ); diamond_10.SetSuit( d ); diamond_10.SetRank(10); diamond_10.SetRank(10); char suit = diamond_10.GetSuit(); char suit = diamond_10.GetSuit(); int rank = diamond_10.GetRank(); int rank = diamond_10.GetRank(); Console.WriteLine( {0}{1} , diamond_10.GetSuit(), Console.WriteLine( {0}{1} , diamond_10.GetSuit(), diamond_10.GetRank()); } }}
{}