You inherit a functionality. Interface does not gives you any kind of functionality. Even if I have a method say Sum in my interface, any class implementing it can write anything in the method definition. There is no way an interface can force you write code that will calculate sum if it has a method called sum.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
If Dog class implements IDog interface, then you can do something like:
IDog dog = new Dog();
I think this is what you are asking. You cannot "call" an interface directly. However, you can use an instance of an interface type to call a method provided the instance points to an object that implements that interface.
I would like to send emails to the clients in accordance with their choice (shopping), I would like it to be formatted, so I thought of HTML body however, it seems difficult to convert gridview datasource to HTML, Is there any easy way to reach the HTML source of a page and assign it to an HTML Text.
hello..I create project online exam with database sql server ...
For multiple question there are many answers for each one questions.
Example: question A have 5 answer
question B have 18 answer
I want to loop answers of question of A(id=1) to textBox: Ans1,Ans2,Ans3,...Ans10 according to number of answers..
thanks for reply...
I don't need this TSQL.. but i want to apply this data that have selected to TextFields in webform...
I have 10 textfield of answer for the maximum 10 answers ,but the answer of question that we sellect could be 2,3,4,5,8...