+ 1

implement bounded types (extend super class) with generics

Create a class shape with method area() create circle and square which extends class shape. create a generic class boundedshape that extends shape. and implement the generics and use area function accordingly

2nd Jan 2022, 11:36 AM
Priyanka Singh
Priyanka Singh - avatar
1 Answer
+ 2
Learn generics class methods interface inheritance To achieve your task
16th Jan 2022, 10:28 AM
AÍąJ
AÍąJ - avatar