Which of the following statements are correct? 1. The signature of an indexer consists of the number and types of its formal parameters. 2. Indexers are similar to properties except that their accessors take parameters. 3. Accessors of interface indexers use modifiers. 4. The type of an indexer and the type of its parameters must be at least as accessible as the indexer itself. 5. An interface accessor contains a body.

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which of the following statements are correct?

1. The signature of an indexer consists of the number and types of its formal parameters.
2. Indexers are similar to properties except that their accessors take parameters.
3. Accessors of interface indexers use modifiers.
4. The type of an indexer and the type of its parameters must be at least as accessible as the indexer itself.
5. An interface accessor contains a body.

1.1,3,5

2.1,2,4

3.3,5

4.2,4

Posted Date:-2021-02-25 10:06:08


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!