0

Plzz check my errors.. I am having trouble as I m a beginner

abstract class ABC{ void A(){ System.out.println("i am method A"); } abstract void B(); } class XYZ{ void B(){ System.out.println("i am abstract method B"); } } class UVW{ public static void main(String[] args){ ABC obj= new XYZ(); obj.A(); obj.B(); } }

8th Aug 2018, 6:41 PM
peter bk
peter bk - avatar
3 odpowiedzi
+ 3
I think you forgot the inheritance. See the attached code https://code.sololearn.com/c547aansDfz1/?ref=app
8th Aug 2018, 7:55 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
You are welcome !
10th Aug 2018, 9:42 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
tq so much
10th Aug 2018, 9:41 AM
peter bk
peter bk - avatar