Choose between abs class with abs method and interface with abs method

If i have a class that can extend abs class n implement interface...and it doesn't have to achieve inheritance ,doesn't have to extend any other class then which 1 should i use between extending a abs class with abs method or implementing interface with abs method.?/
pls ans

Questions by liz29

Showing Answers 1 - 1 of 1 Answers

kandulas

  • Mar 27th, 2009
 

interface cde

 {
    void abc();
}
class abc implements cde
  {
  public  void abc()
   {
System.out.println("hai");
  }
}
class greek
  {
           psvm(string args[])
            {
  greek g=new greek();
   d.abc();
     }

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions