Simple question: bounded generics

B

Ben

Is it possible to bound a generic to an interface?

Something like this:

Class classA< T implements interfaceA>
{

....
}

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

generics puzzle 57
Hairy generics question 29
Generics 24
Generics for a multiplevalue hashmap 8
Generics question 6
A simple form question 2
bounded generic problem 3
[C#] Extend main interface on child level 0

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top