CAN WE USE EXTENDS AND Implements on same class at a time in Java | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

CAN WE USE EXTENDS AND Implements on same class at a time in Java

2nd Jan 2023, 1:54 PM
OO7 Manish kumar .M
OO7 Manish kumar .M - avatar
1 Respuesta
+ 4
Hey, yes you can but you need to declare extends before implements. Here is an example: public class ClassName extends AbstactClassName implements Interface { // your code } I hope this one helped.
2nd Jan 2023, 2:36 PM
NTADI MJ🇨🇬🌍🇨🇬
NTADI MJ🇨🇬🌍🇨🇬 - avatar