- using System;
- namespace _03_03{
- class Car{
- public string color;
- private float weight;
- private DateTime releasedate;
- public static int count;
- public void Run(String RoadName)
- {
- Console.WriteLine("我正在"+RoadName+"公路上行驶......");
- }}
- class Class_03_03{
- public static void Main(String[] args)
- {
- Car car1=new Car();
- Car car2=new Car();
- car1.Run("33号");
- car2.Run("京珠高速");
- }
- }
- }