i want to understand that code. I think T
must be IContinentFactory's
implemented class but i don't understand to end of the new()
keyword.
class AnimalWorld<T> : IAnimalWorld where T : IContinentFactory, new()
{
.....
}
i want to understand that code. I think T
must be IContinentFactory's
implemented class but i don't understand to end of the new()
keyword.
class AnimalWorld<T> : IAnimalWorld where T : IContinentFactory, new()
{
.....
}