List<Foo> where FooAs and FooBs would be displayed completely differently.FooA would simply display "This is a FooA" with a red background while FooB would display "This is a FooB with name '...' and age '...' " in a blue background. You get the idea.FooA and FooB would themselves define how they should be displayed.