Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / menita
interface A
{
String test();
}
interface B
{
int test();
}
public class AB implements B
{
A obj1 = new A(){
public String test()
{
return "";
}
};
public int test()
{
return 0;
}
}
| Is This Answer Correct ? | 7 Yes | 10 No |
Post New Answer View All Answers
Why for each loop is used?
Why main function is static?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
What are the different types of multitasking?
What is bigger kb or mb?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What is package protected in java?
What are the three types of design patterns?
Why string is a class?
What is dynamic binding(late binding)?
What does the three dot emoji mean?
What are basic data types?
What is the size of integer?
Define an abstract class with reference to java.
What is the impact of declaring a method as final?