A method that implements an iterator for Song objects using the return yield statement must have a return type of _____________________.   Question 16 options:   a)  Iterator   b)  List   c)  void   d)  IEnumerable

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

A method that implements an iterator for Song objects using the return yield statement must have a return type of _____________________.

 

Question 16 options:

 

a) 

Iterator<Song>

 

b) 

List<Song>

 

c) 

void

 

d) 

IEnumerable<Song>

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,