コード例 #1
0
ファイル: StructPractice.cs プロジェクト: xrzy1985/cSharp
        static void Main(string[] args)
        {
            Motorcycle motorcycle;

            motorcycle = new Motorcycle("Red", 2008, "Honda", "Shadow 750VT");
            Console.WriteLine(motorcycle.Describe());

            motorcycle = new Motorcycle("Black");
            Console.WriteLine(motorcycle.Describe());

            Console.ReadKey();
        }