
abstract class demo { void play() { System.out.println("hello"); }
void play2()
{
System.out.println("hi there");
}
} class abs extends demo { public static void main(String[]args) { abs obj=new abs(); demo obj2=new demo(){};/tell about this line what does this mean try and explain quickly....\ obj2.play(); obj.play(); obj2.play2(); obj.play2(); } } please tell about the line demo obj=new demo(){}; what does this signify in the above program
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.