I can't access variable from base class c#

后端 未结 0 508
清酒与你
清酒与你 2021-01-02 22:16
public class MyClass
{
    public int x;
}
public class MyClass2: MyClass
{
    x=1;

    
}

Im trying to acces variable x from base class but i get

相关标签:
回答
  • 消灭零回复
提交回复
热议问题