why main method in c# is always placed inside the class but not in c++

前端 未结 6 722
野的像风
野的像风 2021-01-01 23:49

Why we put main() method always inside the class in C# while in c++ it always placed outside of the class.

6条回答
  •  独厮守ぢ
    2021-01-02 00:35

    C# is complete object oriented language where everything is considered as objects. Hence, Main() is kept inside class.

提交回复
热议问题