Multiple choice technology programming languages

what is the difference between indexer and property

  1. An indexer is always an instance member, but a property can be static also.

  2. A property is always an instance member, but An indexer can be static also.

  3. Indexers can not be participate in inheritance, properties can also participate in inheritance

  4. No difference

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C#, indexers cannot be static because they are designed to index instance data using this, whereas properties can be declared static. The other options are incorrect because both properties and indexers can participate in inheritance.