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 difference between private and protected?
Is javascript harder than c#?
Which of these statements correctly declares a two-dimensional array in c#?
Explain about Protected and protected internal, ?internal? access-specifier?
Why we use get set in c#?
Why do we use methods in c#?
What is a delegate, why should you use it and how do you call it ?
What is the difference between “dispose” and “finalize” variables in c#?
Why we use dll in c#?
Define interface class in c#?
What is the relationship between a process, application domain, and application?
C# called c sharp why?