Chapter 17: Problem 18
Can a generic class be a superclass? Can it be a subclass?
Chapter 17: Problem 18
Can a generic class be a superclass? Can it be a subclass?
All the tools & learning materials you need for study success - in one app.
Get started for freeWhy would you want to constrain the type parameter in a generic class?
Can you mix generic and non-generic classes in a class hierarchy?
Can interfaces be defined as generic?
Suppose we use the following statement to instantiate the
ArrayList class. What type of objects will we be allowed to store
in the ArrayList?
ArrayList
When you create an instance of a generic class, can you pass reference types, primitive types, or either to the class's type parameter?
What do you think about this solution?
We value your feedback to improve our textbook solutions.