Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » ASP.NET »

Which scenario use Abstract Calss and Interface in C# or VB.NET?.?


Posted Date: 17 Jul 2012      Posted By:: PalaniKumar.A     Member Level: Gold    Member Rank: 266     Points: 2   Responses: 1



Dear All,
In Our Project, Which scenario use Abstract class and Interface in C# and Explain real time example and Sample coding if you possible..?

Why we use Abstract class and Interface.?

Thanks in advance.

Palanikumar.A
$-Success is often the result of taking a misstep in the right direction-$




Responses

#680709    Author: Anil Kumar Pandey      Member Level: Platinum      Member Rank: 1     Date: 17/Jul/2012   Rating: 2 out of 52 out of 5     Points: 2

If you want to just declare the structure of the structure of the method and do not want to implement it in class we can go for Abstract class.

if we want to implement a class from multiple base class we can go for the Interfaces as a class can inherit from multiple Interfaces.

Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : It shows error like this
Previous : Error like this shows
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.