Does having properties without fields violate encapsulation?

后端 未结 0 902
挽巷
挽巷 2020-12-10 09:37

As I\'ve read so far, the correct way to ensure encapsulation in C# is making the fields private (or protected) and providing the corresponding properties.

cl         


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