I can't modify the example ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I can't modify the example ?

Can someone help me understand why my modified version of the animal class won't work? public class Bird { void speak() { System.out.println("BKAAAA"); } } class MyClass { public static void main(String[ ] args) { Bird falcon = new Bird(); falcon.speak(); }

4th Jul 2016, 5:55 PM
Nate Kozien
Nate Kozien - avatar
5 Answers
0
last } is missing
4th Jul 2016, 6:09 PM
puneet singhal
puneet singhal - avatar
0
Ah. Of course it was something as simple as that. Thank you!
4th Jul 2016, 6:13 PM
Nate Kozien
Nate Kozien - avatar
0
@neeraj ahh u mean netbeans??
5th Jul 2016, 4:51 PM
Rohit Ganiga
Rohit Ganiga - avatar
0
Shut up you dumb bum
20th Nov 2018, 7:09 PM
Connor Stonich
Connor Stonich - avatar
0
nice thing got here
11th Apr 2019, 2:57 PM
Shanto das
Shanto das - avatar