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
Does sprintf add a null terminator?
Can vector have duplicates in java?
Is vector synchronized in java?
Does google use java?
How to optimize the javac output?
What is the static block?
What is compareto () in java?
What is files manifesting?
What is this keyword used for?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Can you explain the meaning of aggregation and composition
What is the purpose of static methods and static variables?
What is the difference between final, finally and finalize() in java?
What is a default method?
os is developed in c no java is more secured then c na why dont the os developed is developed using java