这里,我做一个整合。

这里前期要极其注意修饰符之间的关系。

1.Main调用方法,其实我也不知道叫什么,大家看代码吧。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    

    class Program
    {
        static void Main(string[] args)
        {
            FarClass f = new FarClass();
            f.print();
            Console.ReadKey();
        }

        class FarClass
        {
            public void print()
            {
                Console.WriteLine("Hello");
            }
        }
    }
}
View Code

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2021-11-11
  • 2022-12-23
  • 2021-08-24
  • 2022-01-28
  • 2022-02-22
  • 2022-12-23
相关资源
相似解决方案