How different are interface and abstract class in .Net?

Showing Answers 1 - 8 of 8 Answers

when a class is not provided with full functionalitythen it is declared as abstract.it doesn't support instance creation as well as it cannot be overridable to child class.interface is a colection of methods  only without functionality.interface is 90% same as abstract class.

  Was this answer useful?  Yes

Purushotam

  • Jan 6th, 2007
 

Interface provides no implementation but only contract, where as abstract can provide implementation and contract both.

  Was this answer useful?  Yes

nehal

  • Mar 27th, 2007
 

1. Abstract class can have method with implementation, interface can only have method definitions
2. You can inherit multiple interface but cannot inherit multiple abstract class

  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