1.

Choose the wrong statement about the properties used in C#.NET?(a) Each property consists of accessor as get and set(b) A property cannot be either read or write only(c) Properties can be used to store and retrieve values to and from the data members of a class(d) Properties are like actual methods which work like data membersI had been asked this question in a job interview.I would like to ask this question from Introduction of Properties in chapter Indexers and Exception Handling of C#

Answer»

The CORRECT OPTION is (a) Each PROPERTY CONSISTS of accessor as get and set

The best explanation: NONE.



Discussion

No Comment Found

Related InterviewSolutions