You must Sign In to post a response.
  • Category: .NET

    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)
  • #39002
    .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

    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


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