Home >
Programmer2Programmer.NET Forum>
VB.NET, C# and .NET Core Development >> Abstract and Interface...
NOTE : Log In required to post Replies for this discussion.
Abstract and Interface
|
Riya Walia
|
Posted: Saturday 03, December 2011 08:44:46 AM
|
|
What is the difference between Abstract and Interface?
|
Back to Top
^ |
|
archies_gall | Posted: Sunday 25, December 2011 05:35:51 AM | | Hi Riya,
Abstract 1)Contain abstract methods which can be implemented by the deri ved class. 2)Cannot create an instance of an abstract class. 3)Cannot declare an abstract method outside an abstract class.
Interfaces 1)As in other words they are pure abstract class having methods without body. 2)Like Abstract classes are inherited,Interfaces are Implemente d. 3)In Abstract classes multiple inheritance is not supported whe re as in Interfaces they are allowed to Implement multiple time s.
Hope this will help you.
Thanks! Archie
| Back to Top ^ | | |
AtanuMaity | Posted: Sunday 15, January 2012 08:34:26 AM | | Thanks Archies.
| Back to Top ^ | | |
|
Home > Programmer2Programmer.NET Forum >VB.NET, C# and .NET Core Development >> Abstract and Interface...
|