Making my functions more generic
right now i have several functions that do essentially the same thing, the only difference being the type they take in
i have two data classes that have different data but both share one variable, a Tag class
i have two different functions to go through my database and get these data objects with a matching Tag, how would i go about combining these into one? making them both inherit from a class with a Tag or could i make the functions themselves generic?
i have two data classes that have different data but both share one variable, a Tag class
i have two different functions to go through my database and get these data objects with a matching Tag, how would i go about combining these into one? making them both inherit from a class with a Tag or could i make the functions themselves generic?


