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
How do you find the absolute value?
What is the use of object and class classes?
Is java owned by oracle?
What is hasnext in java?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
Which is the best approach for creating thread ?
How do you convert bytes to character in java?
Is it possible to use string in the switch case?
What do the thread?class methods run() and start() do?
How to retrieve data from database in java using arraylist?
Give a brief description of java socket programming?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What is t in generics in java?
What do you mean by compiler?
What is thread life cycle?