Here is my code; apparently I am missing main. Please help
class A {
A get(){return this;}
}
class B1 extends A{
B1 get(){return this;}
void message(){System.out.println("welcome to covariant return type");}
public static void main(String args[]){
new B1().get().message();
}
}
java -cp . B1? I suggest you try running (and formatting your code) in your IDE.