What is Interface? Explain with an example.

Answer Posted / radhika

An interface defines a contract for a class.The name of an
interface begins with a capital I.interface doesnot
contains any method implementations.The class that
implements the interface must provide all the
implementation for the members defined in that interface.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the major difference between a custom control and user control?

561


Can we instantiate abstract class in c#?

479


What is literal control

586


What are the steps to create an assembly and add it to the gac?

462


Explain about WSDL

601






Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

601


what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

555


What is a copy constructor in c#?

500


What is the purpose of reserved word using in c#?

501


What is difference between struct and class in c#?

479


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

529


What happens when thread sleep () method is called?

504


What is c# console application?

488


what is IComparable

560


How many bytes is a char c#?

487