adspace


what is interface and when it is used?

Answer Posted / Dharmendra Kumar Gupta

An interface is a collection of abstract methods (without implementation) that define a contract for a set of methods that a class implementing the interface must provide. Interfaces are used in object-oriented programming to achieve polymorphism, allowing multiple classes with different implementations to be treated as a single type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of assembly?

1079


Explain an assembly?

1055


What are the features of c# which are not present in vb.net?

1183


Explain the difference between datatable and dataset?

1418


Explain how can we remove handlers at run time?

1074


How to send xml file on server using http protocol?

1074


Explain the difference between system.string and system.stringbuilder classes?

1079


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

1104


What is early binding?

1014


What is option strict?

1212


How to store images in sql server database through vb.net?

1022


How to retrieve images in sql server database through vb.net?

1041