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)
.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
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.