using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ClassStudy
{
class Test
{
public static void Main(string[] args)
{
// Utils u = new Utils(); error静态类是不能实例化的,这种类一般用作工作类,所有的方法全为静态方法
Utils.Something();
Console.ReadKey();
}
}
public static class Utils
{
public static void Something()
{
Console.WriteLine("做一些事情!");
}
}
}