المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Declare variable as Interface vs. Class



C# Programming
07-21-2012, 03:30 PM
Hi,

Could anyone explain me the difference between interface and class variable.

E.g.:
ISomething ivar; //interface variable
CSomething cvar; //class variable

or
IList var1;
List var2;

I am so confused the difference among them.

Thanks in advance!