Hi,
What is the main advantage of INTERFACES and when to use the INTERFACES in my project.
please suggest.
thanks inadvance
Regards,
Balu Reddy K
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Apr 17, 2012, 4:59 AM
Take advantage of interfaces to make your code cleaner and more reusable. A simple example of where interfaces can be applied is in populating UI controls. How many ListBox controls do you have to populate in your web application?
One solution is to write the code to populate each ListBox individually in the Page_Load method. Another method could be to create a helper method that takes an array of data items and a ListBox as parameters, populating the ListBox from the array of data
Advantages of Interface:
http://msdn.microsoft.com/en-us/library/3b5b8ezk(v=vs.80).aspx
when to use:
http://msdn.microsoft.com/en-us/library/3b5b8ezk(v=vs.80).aspx
VulpesPosted Apr 17, 2012, 4:57 AM