C# Programming
09-09-2010, 02:40 PM
Hi
I have one query as
Consider i have ICheck interface which is implemented by class "Data".
So I can access functions in Class Data using
Code as
1)
Data obj;
obj.Fun();
2) ICheck ck = new Data();
ck.Fun()
So what is advantages of using second code.
I have one query as
Consider i have ICheck interface which is implemented by class "Data".
So I can access functions in Class Data using
Code as
1)
Data obj;
obj.Fun();
2) ICheck ck = new Data();
ck.Fun()
So what is advantages of using second code.