Several superclasses for generics

  • 8
  • Locked
You're given a Solution class with a T type parameter. Place bounds on the T type parameter. T must simultaneously inherit the ClassForGenerics class and implement InterfaceForGenerics interface. You can only change the Solution class.
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 38 , Greenfield, USA, United States
22 November 2022, 12:17
They haven't shown you how to parameterize an interface with generics yet, so I'm not sure why this is considered easy. It isn't intuitive and doesn't work the same way as writing a class that implements an interface. I had to look at the solution.
JianQiu Hwang
Level 35 , Washington
12 April 2020, 10:16
29 August 2020, 03:56