You must Sign In to post a response.

What is difference between interface inheritance and class inheritance

The forum thread has not been reviewed by Editors yet. Readers are advised to use their best judgement before accessing this thread.
This thread will be reviewed shortly.
If you think this thread contain inappropriate content, please report to webmaster.
hi can u explain briefly differences between class inheritance and interface inheritance (and which .net languages supports)


Comments

#39002    Author: Rajkumar    15 Jan 2006 Member Level: Bronze   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    16 Sep 2008 Member Level: Gold   Points : 4

Hi,


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.

Regards
S.S.Bajoria



Thanks & Regards


Bunty


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.