相关疑难解决方法(0)

由于其保护级别而无法访问

我无法弄清楚这一点.问题是距离,俱乐部,清洁俱乐部,洞,分数和标准都说由于保护水平而无法进入,我不知道为什么因为我认为我做的一切都是正确的.

namespace homeworkchap8
{
    public class Clubs
    {
        protected string club;
        protected string distance;
        protected string cleanclub;
        protected string scores;
        protected string par;
        protected string hole;            

        public string myclub
        {
            get { return club; }
            set {club = value; }
        }        
        public string mydistance
        {
            get { return distance; }
            set { distance = value; }
        }        
        public string mycleanclub
        {
            get { return cleanclub; }
            set { cleanclub = value; }
        }       
        public string myscore
        {
            get { return …
Run Code Online (Sandbox Code Playgroud)

c#

27
推荐指数
2
解决办法
15万
查看次数

标签 统计

c# ×1