Hi guys, I am learning C# Scripting but I couldn't understand the member hiding concept. How it works?
I think not possible because member hiding or delete post rights available only Unity Technology members.
It's about restricting the access of members to only specific parties. C# includes 5 access modifiers for members, and they are: public - This means that all classes can see this member. private - This means that only the class it's defined in can see the member. protected - This means that only the class it's defined in and child class can see this member. internal - This means that only classes within the same assembly can see the member. protected internal - This means that only derived classes and classes within the same assembly can see this member. You might ask, who would want to restrict the access of members? The answer is that the less places there are that use a member, the easier it is to change it. If a member only has 1 dependency, then it's so easy to change or get rid of it. If everything was public, then the dependencies would go through roof making code much more difficult to change. This especially becomes essential when more than one coder is involved. Like when one is creating a library, member access is super important. The members which are least likely to change ever, can be public. Members who's future is uncertain should be private. Types have different access modifiers, and they are: public - This means that everything can see the class. internal - This means that only classes within the same assembly can see/use the class. When the modifier is unspecified for a class, this results in the class becoming internal. This is different from members who's default access modifier is private.