implement bounded types (extend super class) with generics | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 2
Learn generics class methods interface inheritance To achieve your task
16th Jan 2022, 10:28 AM
AĶ¢J
AĶ¢J - avatar