Choose The Correct Statement Among The Following #457
Choose the correct statement among the following?
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 Indexers - Quiz No.1.
Choose the correct statement among the following?
A property can be a static member whereas an indexer is always an instance member
A get accessor of a property corresponds to a method with no parameters whereas get accessor of an indexer corresponds to a method with the same formal parameters lists as the indexer
It is an error for indexer to declare a local variable with the same name as indexer parameters
All of the mentioned