W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
using System; namespace MyApplication { class Car { string color; // 字段 int maxSpeed; // 字段 public void fullThrottle() // 方法 { Console.WriteLine("The car is going as fast as it can!"); } static void Main(string[] args) { Car myObj = new Car(); myObj.fullThrottle(); // 调用方法 } } }