I'm creating an abstract class to derive from. I have a Value
property that can be numerous data types. I saw an article on generics and I'm just wondering if my understanding is correct.
Does having an abstract:
BaseClass<T>
and inheriting it like:
InheritingClass: BaseClass<int>
basically equate to: anywhere there is a type T
defined in BaseClass , treat it as a type int
when used through InheritingClass?
That is my understanding and I just want to make sure that is correct before I build the rest of these classes and find out I was way off. This is the first time I've used generics.