1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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