A user defines a class to implement an iterator for a user-defined collection. When an iterator object is created, it needs to know
a) when it was created
b) why it was created
c) the number of elements in the collection
d) the datatype of the elements in the collection
e) none of the above
c) the number of elements in the collection
Computer Science & Information Technology
You might also like to view...
The Menu bar command Insert is used to display nonprinting characters on the screen
Indicate whether the statement is true or false
Computer Science & Information Technology
struct nodeType{ int info; nodeType *link;};nodeType *head, *p, *q, *newNode;newNode = new nodeType; Consider the accompanying code. What is the effect of the following statement?newNode->info = 50;
A. Stores 50 in the info field of the newNode B. Creates a new node C. Places the node at location 50 D. Cannot be determined from this code
Computer Science & Information Technology