Compiler Error CS0120

前端 未结 2 760
天命终不由人
天命终不由人 2020-12-12 07:48

I\'m trying to understand concept \"class\" and write some easy program. But my function Check() is not correct. Please follow me to the right side..

namespa         


        
2条回答
  •  既然无缘
    2020-12-12 07:55

    You're calling Check as if it was static method. It is instance method so it should called p1.Check().

提交回复
热议问题