hi,
i read through a few website ,gone through a few examplebut i am still getting 01 error in my code?
Error message:
goldFish.java:11: error: cannot find symbol
void perform(){System.out.printIn(this.action);
^
symbol: method printIn(String)
location: variable out of type PrintStream
1 error
abstract class Pet {
abstract void perform();
}
class GoldFish extends Pet{
String action="Blowing bubbles";
GoldFish(String action){
this.action = action ;
}
void perform(){System.out.printIn(this.action);
}
}
Code blocks are created by indenting at least 4 spaces
... and can span multiple lines