inheritance and polymorphism in c#

Discussion in 'C#' started by hitesh123, Oct 22, 2011.

  1. hitesh123

    hitesh123 Banned

    Joined:
    Oct 20, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    seo executive
    Location:
    delhi
    In C# we can do polymorphism through inheritance. it allows to define methods in a base class and override those methods with derived class implementations. Thus if we have a base class object that might be holding one of several derived class objects, polymorphism allows to call a method that will work differently according to the type of derived class the object belongs to.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice