コード例 #1
0
 static void Main()
 {
     Console.WriteLine("Enter phone model");
     string phoneModel = Console.ReadLine();
     Console.WriteLine("Enter phone manifacturer");
     string phoneManifacturer = Console.ReadLine();
     Console.WriteLine("Enter phone owner");
     string phoneOwner = Console.ReadLine();
     Console.WriteLine("Enter phone price");
     float phonePrice = float.Parse(Console.ReadLine());
     GSM phone = new GSM(phoneModel, phoneManifacturer, phoneOwner, phonePrice);
     string info = phone.GetPhoneInfo();
     Console.WriteLine(info);
 }