Q:

Why Properties are introduced in C#?

0

Why Properties are introduced in C#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the difference between the dispose and fin... >>
<< What are the differences between System.String and...