How implement bounded types (extend superclass) with generics?
As of now we have seen examples for only one type parameter. What happens in case we want to access group of objects comes from same family, means extending same super class? You can restrict the generics type parameter to a certain group of objects which extends same super class. You can achieve this my specifying extends
| |||
| |||
Compilation of already published Articles/Ideas/Problems-Solutions which I faced or came across over the period of time. Largely a place for me to document it as note-to-self. Nothing serious. :)
Wednesday, October 30, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment