What is Covariance and Contravariance ?

 Posted by Raja on 5/11/2010 | Category: .NET Framework Interview questions | Views: 8355
Answer:

Assigning a string to an object from specific type to a more general type is called covariance.

In contrast, assigning an array of objects to an array of strings, from general type to a more specific type, is referred to as contravariance.


| Alert Moderator 

Comments or Responses

Login to post response