Choose The Statements Which Makes Use Of Essential Properties #465
Choose the statements which makes use of essential properties rather than making data member public in C#.NET?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Indexers and Exception Handling - Introduction of Properties - Quiz No.1.
Choose the statements which makes use of essential properties rather than making data member public in C#.NET?
Properties have their own access levels like private, public, protected etc. which allows it to have better control about managing read and write properties
Properties give us control about what values may be assigned to a member variable of a class they represent
Properties consist of set accessor inside which we can validate the value before assigning it to the data variable
All of the mentioned