changing variable types of a function of a derived class

Discussion in 'C#' started by mrclash, Sep 20, 2006.

  1. mrclash

    mrclash New Member

    Joined:
    Sep 20, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I have a class that uses some variables to access a sql database, and I want to make a derived class that inherits all the methods of this class, because the derived one will do exactly the same process that the parent one, but with a postgres database, thus I've got to use diferent type variables to acces the database.

    There's one big function in the class that does all the DB stuff, and I want to know if there's any way to inherit the function but with only changing the type of some vars inside this function.

    Thanks!

    Sergi
     

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