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
What are the 8 data types in java?
Name some OOPS Concepts in Java?
Is java a compiler?
What is integers and example?
What java ide should I use?
Is java se free?
What is method overloading with type promotion?
Is null a string in java?
Can we create more than one object singleton class?
What is constructor chaining in java?
How do you create a method in java?
Differentiate between a constructor and a method? Can we mark constructors final?
What is difference between equal and == in java?
What is the difference between array and array list in java?
Does apple use java?