Lecture 15 Objectives
At the end of today's class you should
KNOW:
- That a bounded generic parameter restricts the type of the target class
- That generics give you protection against runtime errors that using Object
and casting can't provide
BE ABLE TO:
- Define a class hierarchy that uses a bounded generic parameter
Sample Exam Question:
Give an example of an application for which the use of Object as the data type
would be preferred over the use of generics