
上QQ阅读APP看书,第一时间看更新
Creating and using a generic interface
Generic interfaces work in much the same way as the previous examples in generics. Let's assume that we want to find the properties of certain classes in our code, but we can't be sure how many classes we will need to inspect. A generic interface could come in very handy here.