• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract class and interface

 
jignesh soni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
abstract class and interface has undefined methods in them. so why do we need interface when abstract class is there and it serves the purpose ?
 
Norm Radder
Bartender
Posts: 1239
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One part is that a class can implement more than one interface but only extend one abstract class.
 
Ravikanth kolli
Ranch Hand
Posts: 179
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic