templates in java?

Discussion in 'OT Technology' started by eter, Oct 30, 2005.

  1. eter

    eter New Member

    Joined:
    Jan 18, 2004
    Messages:
    5,433
    Likes Received:
    0
    Location:
    Quebec city
    hey, I want to use a same function for different types of objects. polymorphism sounds like overkill is there a simple way to use the equivalent of c++ templates in java?

    thanks
     
  2. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Interface?
     
  3. skinjob

    skinjob Active Member

    Joined:
    Jan 6, 2001
    Messages:
    2,337
    Likes Received:
    0
    Location:
    Aztlán

Share This Page