Feature
|
Interface
|
Abstract class
|
Declaration and implementation of Methods
|
Contain only declaration of functions and methods. It does not provide implementation of methods.
|
We Can provide default implementation of methods.
|
Implement Every Method or Override every method
|
The derived class must implement all the methods of interface.
|
Not necessary to implement all methods.
|
Fields and Constants
|
Fields can not be define
|
Fields can be define.
|
Access Modfiers
|
An interface cannot have access modifiers for the functions, properties etc everything is assumed as public
|
An abstract class can contain access modifiers for the functions, properties
|
OOPS Concepts, OOPS interview questions, C#.Net interview questions, .Net framework interview questions, Asp.Net interview questions, SQL server interview questions, WCF interview questions, WPF interview questions, Angular Js interview questions
Wednesday, April 13, 2011
What is the difference between an abstract class and interface?
Subscribe to:
Post Comments (Atom)
Labels
.Net Framework interview questions and answers
Asp.Net
Asp.net mvc
Auto Responder
Binary Gap
C#
C# Concepts
C# For Loop exception
Codility
Codility Cyclic Rotation Solution C#
Codility FrogJmp Solution
Codility OddOccurrencesInArray Solution C#.Net
Codility TapeEquilibrium Solution C#
Common table expression
CSS
Delegates in C#.Net
Entity Framework
Error Code 1175
Fiddle
Group By
Guid Default / Empty / Null parameter
Handle exceptions in loop
identity specification false
Kendo UI Editor
line height
My SQL
null can not insert
OOP & C#.Net interview Questions
OOPS
Span value jquery
SQL server
stringbuilder
stringbuilder clear
top 2 in group by for each group
Visual Studio
WCF
WPF
very nice... thanx for the info.
ReplyDeleteYou should visit www.examfear.com for more about education and exams