Bookmark Topic Watch Topic
  • New Topic

Interface

 
Gaurav Pavan Kumar Jain
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Report post to moderator
what are the major difference between Interface and Abstract method
 
Mayur Ramgir
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
There are few differences with abstract class and interface. One obvious difference is that abstract class can implement methods it means abstract class can declare whole method body. On the other hand interfaces only declare method signature, they don�t implement method itself.

Also, you implement interface and extend abstract class. It means you have to implement all the declared methods from interface. Whereas in case of abstract class, you need to implement only abstract methods.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15495
43
Android IntelliJ IDE Java Scala Spring
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic