C# and .NET interview questions: -What is the differences between abstract class and interface?
- By Shiv Prasad Koirala in C#
- Sep 7th, 2011
- 157
- 1
C# and .NET interview questions: - What is the differences between abstract class and interface?
 
| Abstract class | Interface | |
| Implementation | Some methods in abstract classes can have implementation. | All methods, function, properties in interfaces have to empty compulsorily. | 
| Scenario | Abstract classes are used when we want to share common functionality in parent child relationship. | Interfaces are used to define contract, enforce standardization, decoupling and dynamic polymorphism. | 
| Variable declaration | We can declare variables | In interface we cannot do that. | 
| Inheritance vs Implementation | Abstract classes are inherited. | Interfaces are implemented. | 
Watch video on regular expression with practical demonstration as follows: -
Get more materials on  important Dotnet interview questions
 
Regards,
See more stuffs on author's blog for important .NET interview questions
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more
 
- By Shiv Prasad Koirala
- Sep 12th, 2013
- 405
- 1
What is Jquery ? ( ASP.NET Jquery interview questions with answers)
 
- By Shiv Prasad Koirala
- Jun 20th, 2012
- 151
- 1
C# threading interview questions: - What is the difference between
 
- By Shiv Prasad Koirala
- Feb 16th, 2013
- 103
- 1


 
 
