What?s an interface class?
Answers were Sorted based on User's Feedback
Answer / lakshmi
1)An Interface is a reference type and contains only
abstract members.
2)Interface contains declaration of methods, properties,
Indexers and events.
3)You can never instantiate an interface, it only contains
signature of its members.
4)An Interface has neither constructors nor fields.
5)An Interface definition also not permitted to contain
operator overloads.It is also not permitted to declare
modifiers on the members in an Interface definition.
6)An Interface members are always implicitly public and
cannot be declared as virtual or static.
| Is This Answer Correct ? | 9 Yes | 0 No |
Interfacess is a Collection of Method Prototypes.
These methods must be implemented in the Implemented Class.
Eg:
---
If we are having 10 methods in the Interface Class
All the 10 methods must be implemented in the Implemented
class.
Note:
-----
The main thing is by using The Interface Concept we can
acheive Multiple Inheritance in dotnet.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / monu sharma
Interfacess is a Collection of Method Prototypes.
These methods must be implemented in the Implemented Class.
->An Interface is a reference type and contains only
abstract members.
->Interface contains declaration of methods, properties,
Indexers and events.
->An Interface members are always implicitly public and
cannot be declared as virtual or static.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / tsahi
An interface class is a figment of your imagination. There
is no such thing; a class and an interface are two similar,
but separate things.
A class describes an object. An interface describes a set of
methods that an implementing class or struct must implement.
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / umesh
It?s an abstract class with public abstract methods all of
which must be implemented in the inherited classes.
| Is This Answer Correct ? | 0 Yes | 3 No |
what is the main differnce between const,readonly and static
3 Answers Beehive Systems, CDAC,
What are the collection types can be used in c#?
If you define a user defined data type by using the class keyword, is it a value type or reference type?
What are constructors in c#?
list the steps in code compilation in c#?
What are the different types of constructors in c#?
Is it possible to add two 50 digit numbers in .net? If yes what is the code snippet?
2 Answers Cognizant, W3 Solutions, Zefer,
Can we have a non static member function in a base class to be override in derived with static modifier?
What is the difference between int.Parse() and Convert.toInt32().
Which is faster dictionary or hashtable?
Why are strings in c# immutable?
What is difference between for and foreach loop in c#?
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)