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(); } }
3 odpowiedzi
+ 3
I think you forgot the inheritance. See the attached code
https://code.sololearn.com/c547aansDfz1/?ref=app
+ 1
You are welcome !
0
tq so much