Answer Posted / nsiddiqui69@yahoo.com
Interface inf1
{
void show();
}
class Derived implement inf1
{
void show1()
{
S.o.p("Derived class method");
}
public void show()
{
S.o.p("Interface method");
}
}
class infdemo
{
p.s.v.m(String args[ ])
{
Derived d1= new Derived();
d1.show();
d1.show1();
}
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is local variable and instance variable?
Why vector class is used?
What are the features of junit?
How we can execute any code even before main method?
what is nested class in java?
Is alive in java?
What is instance synchronization?
What is static import?
What is nested top-level class?
Explain 5 io best practices?
What is another word for methodology?
How do you find the independent variable?
What is parsing in java?
Where is singleton pattern used?
What is the full name of java?