Q:

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 members

I 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#

C#

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.