0

I have a doubt... Want it urgently

Class A{ public int x ; public ____ equals (object o) { ______ ((A) o). x ==this. x; } public static void main (String [] args) { A a = new A() ; a. x = 9; A b = new __(); Options are: Return new x boolean equals b A Please solve this blanks!!!

28th Jul 2020, 7:37 AM
Lalkar Zirange
Lalkar Zirange - avatar
5 Réponses
+ 3
Okay then, good job 👍
28th Jul 2020, 8:24 AM
Ipang
+ 1
No not working
28th Jul 2020, 7:40 AM
Lalkar Zirange
Lalkar Zirange - avatar
+ 1
I think you are not showing the whole code, the main method and the class A are missing closing brackets for their block.
28th Jul 2020, 8:07 AM
Ipang
0
Ya i got it I got it correct
28th Jul 2020, 8:08 AM
Lalkar Zirange
Lalkar Zirange - avatar
0
Ya thanks😊☺
28th Jul 2020, 8:24 AM
Lalkar Zirange
Lalkar Zirange - avatar