Hi
Why am i getting error i the below code.

abstract class SuperHeroes {

abstract void perform();

}
class IronMan extends SuperHeroes{
String action="Blowing bubbles";
IronMan(String action){
this.action = action;
}
void perform(){System.out.printIn(this.action);
}
}

Recommended Answers

Why am i getting error

Please copy and paste the full text of the error message.

Jump to Post

All 2 Replies

Why am i getting error

Please copy and paste the full text of the error message.

ok below is the error message

goldFish.java:10: error: cannot find symbol
    void perform(){System.out.printIn(this.action);
                             ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
1 error
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.