What is InterFace???
Answers were Sorted based on User's Feedback
it is a class whos members doesnt contain any definition
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / anita chauhan
we can say its a collection of function or in standard form
its definition is: It is a syntactical contract that all
the derived classes should follow.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / supraja polam reddy
An interface in C# is type definition similar to a class
except that it purely represents a contract between an
object and a user of the object. An interface cannot be
directly instantiated as an object. No data members can be
defined in an interface. Methods and properties can only be
declared, not defined
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dhanunjaya
An interface is the contract between the class and itself.
an interface can contain abstract memberrs only.
And more over an interface can contain abstract
functions,abstractv properties,abstract events,abstract
indexers,but not contain
variables,functions,constructors,destructors.it provides
the rules that can followed by all the derived classes......
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / padmaja
In interfaces we can define the methods.but, no
implementation can be done.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / muhammad zohaib brohi
interface are not class... they are like class .. interface contain functions and variables which describe a group of related functionalities.... interface contains of incomplete functions.... we use interface to achieve multiple inheritance ...
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dhanunjaya
An interface is the contract between the class and itself.
an interface can contain abstract memberrs only.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / ajay kumar singh
A user defined data type very similar to a class that contains all abstract methods.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / prathyusha
Interface is construct which is a universal common
reusable data memebers and universal common reusable
methods..
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / ragupathy
An Interface is like a class. we can't create object of the
class. we inherit the members of the interface.
| Is This Answer Correct ? | 1 Yes | 4 No |
What are the advantages of properties in c#?
What is the difference between User controls and Custom Controls?
what is the need of using interface in program ex:if we have a program like this interface1() { void method1(); void method(); } class a1 : interface1 { a1 b = new b(); b.method1(); b.method2(); } so without using interface also we can achieve this then wat is the need to use the interface? plz give me the answer
Which is faster hashtable or dictionary?
Is concurrent queue thread safe?
What are the Types of assemblies that can be created in dotnet
How does foreach loop work in c#?
Could you explain the difference between func vs action vs predicate?
What is sql transaction in c#?
What is desktop GUI application?
How we can create an array with non-default values?
Define satellite Assembly?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)