Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  java
Language: JAVA
Code:
abstract class MyClass{
     void init(){}
     abstract int calculate();
}
class MyImpl extends MyClass{
     int calculate(){
          System.out.println("Cal");
          return 1;
     }
}
public class jNrhE3p4 {

    public static void main(String[] args) {
        MyImpl mi=new MyImpl();
     mi.init();
     mi.calculate();
    }

}          
Comments: