Answer Posted / siva mukesh
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is it possible to instantiate the abstract class?
what is meant by Byte code concept in Java?
Can a static class have a constructor java?
how to write a server program and sending the mails to the server using smtp protocol please help me
Explain some best practices you would apply while using collection in java?
How define set in java?
What is the purpose of garbage collection in java?
Can we have return statement in finally clause? What will happen?
What is a functional interface?
Define an enumeration?
Is java se free?
What is import java util arraylist?
What are the six ways to use this keyword?
Which collection is ordered in java?
How destructors are defined in java?