What form of polymorphism is demonstrated by inheritance and virtual functions?
A. compile-time polymorphism.
B. linker polymorphism.
C. run-time polymorphism.
D. None of the above.
C
You might also like to view...
Given a linked list (using the code from the book) and assuming there are at least two nodes in the list, which of the following sets of statements would implement a function to return and remove the last item in the list?
a. NodePtr here; here=head; while(here->link != NULL) { here = here ->link; } return here->data; delete here; b. NodePtr here; here=head; while(here->link != NULL) { here = here ->link; } delete here; return here->data; c. int tmp; NodePtr here, there; here=head; while(here->link != NULL) { there = here; here = here ->link; } there->link = NULL; tmp=here->data; delete here; return tmp; d. int tmp; NodePtr here, there; here=head; while(here->link != NULL) { there = here; here = here ->link; } there->link = NULL; tmp=here->data; return tmp; delete here;
The Home button displays your home page, which is _____.
A. the most frequently visited Web site B. the main page of your Web site C. the page that appears when you first start your browser D. the browser's download page
A ____, also called an index, is a number that indicates the position of a particular item within an array.
A. superscript B. key C. placeholder D. subscript
What high level steps are required in the link based implementation of ADT List to delete an existing item from the list?
What will be an ideal response?