A Class to interface with many types
-
:confused:I need to create a class which interfaces with a whole host of other classes. Instead of a Base Class <> Class relationship, I want a Class to interface between many different types of basic classes. My New Interface Class <> Basic Class (of many types) This way I have a COMMON interface and structure for my application to work with these basic types. I think if I use the Base Class <> Class relationship, my application code will be very type specific because of the different functions and data that will be available with the different basic classes. Is there a good location to read up on this? Any Go-By's? Anybody think this is backwards? It may be worth mentioning that the different basic classes will all be of similar type, meaning all wil be data and functions. Its not like I am working with graphic, audio and/or function differences.