Buy Questpond's video subscriptions on
huge discount
.
Online: 3257
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
interface and abstract class. [Resolved]
Posted by
Santoshkumar
under
C#
on 10/29/2010 |
Points: 10
| Views : 2745 | Status :
[Member]
| Replies : 3
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Can anybody gud article to understand difference between interface and abstract class.
thank you.
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
SheoNarayan
on: 10/30/2010
[Administrator]
HonoraryPlatinum
|
Points: 50
0
Let me explain you quickly.
Interface is a contract. Interface is used to define the structure of the program. Interface can contain only definition of the classes or properties, it can not have implementation.
Abstract class is generally used as a base class. Where you can place commonly used method or properties. Abstract class can have definition as well as implementation of methods or properties.
For more details, read in below links
http://www.dotnetfunda.com/interview/exam1729-when-to-use-abstract-classes-and-when-interfaces-.aspx
http://www.dotnetfunda.com/articles/article645-abstract-method-and-abstract-class-.aspx
http://www.dotnetfunda.com/forums/thread1679-difference-between-abstract--interface.aspx
http://www.dotnetfunda.com/interview/exam332-when-to-use-interface-over-abstract-class-.aspx
Hope this helps.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Santoshkumar
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
T.saravanan
on: 10/30/2010
[Member]
[MVP]
Silver
|
Points: 50
0
Hi Santhosh,
http://www.pragimtech.com/abstractInterfaces.aspx
Refer this link i hope its useful to you.
Cheers :)
Thanks,
T.Saravanan
Santoshkumar
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Praneethn
on: 10/30/2010
[Member]
Starter
|
Points: 25
0
the key differences are:
1. the abstract class contains non abstract class while the interface cannot.
2. a class can implement any number of interfaces but only inherit from one class abstract are not.
Few articles:
http://en.csharp-online.net/Interfaces_and_Abstract_Classes
http://www.dotnetspider.com/forum/160049-Abstract-class-interface-use-with-example.aspx
http://www.codeproject.com/KB/architecture/Abstract_Interface.aspx
Hope this helps you.
Santoshkumar
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...