Performance of Class and Interface in C#.Net

Posted by Naraayanan under C# on 8/5/2013 | Points: 10 | Views : 1371 | Status : [Member] | Replies : 1
Hi All,
I have one query. I am using 5 Class (Business Layer Class) in my form(One Form). I decide to Call my Bl Classes methods in One Class .But some of my friend suggested me, Create one Interface for all Bl Classes(5) .please tell me, which is best for this tow options(Performance wise).

Lakshmi Naraayanan.S


Posted by: Ssj_Kumar on: 8/5/2013 [Member] Starter | Points: 25

If you going to use all your methods in derived class interface will be better, bcz interface force you to implement all the methods.
If you going to use only the required methods then class will be the better option.

Related to Performance both are good if you use right thing in the right place all dependents on your requirement

Jayakumar Selvakani

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response