• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract class or interface

 
rohit rusty
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in one case if we are using absttract class and in the other if we are using interface. which one shoul take lesser time given both the programs are performing the similar operation?
- regards
Rohit
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In spite of the fact that it makes no difference, you should not be worrying about performance when making this decision - instead, worry about clarity and maintainability.

"Premature optimization is the root of all evil"

Bill
 
samir vasani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Performance wise interface is slower then abstract class...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Performance wise interface is slower then abstract class...


Really I would really love to see documentation that backs up this utterly astonishing statement.

Or, if no documentation is available, where you got the idea.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic