What is the equivalent of a 'friend' keyword in C Sharp?

前端 未结 7 1169
既然无缘
既然无缘 2021-02-18 15:52

What is the equivalent of a \'friend\' keyword in C Sharp?

How do I use the \'internal\' keyword?

I have read that \'internal\' keyword is a replacement for \'fr

7条回答
  •  被撕碎了的回忆
    2021-02-18 16:30

    Your subclass will be able to access the protected members of the class you inherit.

    Are you looking to give access to these protected members to another class?

提交回复
热议问题