Why Properties are introduced in C#?
Properties are introduced in C# due to the below-mentioned reasons.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Properties are introduced in C# due to the below-mentioned reasons.
- If the members of a class are private then how another class in C# will be able to read, write, or compute the value that field.
- If the members of the class are public then another class may misuse that member.
need an explanation for this answer? contact us directly to get an explanation for this answer