What is an advantage to defining an ADT that uses a generic data type?
What will be an ideal response?
When retrieving an item from the ADT, it won’t be necessary to cast the return value from Object, and we can thus avoid class cast exceptions if the type of the data in the collection was inappropriate.
Computer Science & Information Technology
You might also like to view...
A(n) ________ action button can be set to move to a particular slide, a URL, another PowerPoint presentation, a file, play a sound, or run a macro
Fill in the blank(s) with correct word
Computer Science & Information Technology
How do you apply a stroke or drop shadow?
What will be an ideal response?
Computer Science & Information Technology