Revise the definition of the method containsso that it calls the methodgetIndexOf.

What will be an ideal response?

template
bool ArrayBag::contains(const ItemType& anEntry) const
{
return getIndexOf(anEntry) > -1;
} // end getCurrentSize

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT true about hyperlinks within presentations?

A) Hyperlinks are objects, such as text or graphics, that provide a path to additional resources. B) You can hyperlink to slides that are not in the normal progression of the slides. C) With a kiosk presentation, this gives the audience an opportunity to interact with the presentation. D) You can provide hyperlinks to Internet resources, such as e-mail and the web.

Computer Science & Information Technology

Which of the following tasks is a good candidate for a macro?

A. Printing several reports B. Modifying the design of a form C. Building ad hoc reports D. Creating graphs

Computer Science & Information Technology