Completely Free .NET word API

Forums » .NET » .NET »

What is difference between interface inheritance and class inheritance

Posted Date: 14 Jan 2006      Posted By:: Yandra Siva Kumar Profile photo    Member Level: Silver  Member Rank: 0     Points: 2   Responses: 2

hi can u explain briefly differences between class inheritance and interface inheritance (and which .net languages supports)


#39002    Author: Rajkumar      Member Level: Bronze      Member Rank: 0     Date: 15/Jan/2006   Rating: 2 out of 52 out of 5     Points: 2

.Net does not support multiple inheritance. deference between interface and class is.

interface is a reference type and it contains abstract members. interface members can be events, methods, properties and indexers. but it contains only declarations for its members. any implementations must be placed in class

#295841    Author: Bunty      Member Level: Gold      Member Rank: 0     Date: 16/Sep/2008   Rating: 2 out of 52 out of 5     Points: 4


Interfaces are similar to abstract classes.However,interface represent the highest level of abstraction in object-oriented programming.This is because all the methods in an interface are abstract and do not have implementation.In contrast,the abstract classes that are created using Abstract keyword might contain a method that has a body.


Thanks & Regards


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.

  • Return to Discussion Forum
  • Start new thread

  • Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India