+ 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
1 Odpowiedź
+ 2
Learn
generics
class
methods
interface
inheritance
To achieve your task