Can property defined in Interface.
Answers were Sorted based on User's Feedback
Answer / prashant k
Yes, We can define properties inside the interface without
implementation. e.g.
String GetName {get; set;}
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / pramodgupta20
You can declare the property in interface and define it in
the class which implements the interface.
int GetUser{get; set;}
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / nisha mac
yes you can declare the property inside interface but
implementation is mandatory otherwise it will throw error at
buid time saying you need to implement it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chandan kumar
No,We Can,t define property in Interface
| Is This Answer Correct ? | 1 Yes | 17 No |
What is bitwise operator in c#?
What is eager and lazy loading in c#?
What is the use of protected in c#?
What are delegates in C#?
Why can?t you specify the accessibility modifier for methods inside the interface?
from web.config file with connection string who to interact means who to connect in gridview. in my system shows null something error what is the problem
What are three test cases you should go through in unit testing?
1 Answers Siebel Systems, Wipro,
What is expression tree in c#?
What are the differences between static, public and void in c#?
Hi Everyone, the design of the form disappear during writing codes for dataset and data grid. The error show in "line of assigning dataset". I don't know what's happen. If anyone know , please share of technical help from someone. Thanks, Horace Trever
Why are local variables stored in stack?
C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
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)