Can property defined in Interface.

Answers were Sorted based on User's Feedback



Can property defined in Interface...

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

Can property defined in Interface...

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

Can property defined in Interface...

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

Can property defined in Interface...

Answer / chandan kumar

No,We Can,t define property in Interface

Is This Answer Correct ?    1 Yes 17 No

Post New Answer

More C Sharp Interview Questions

What is hash c#?

0 Answers  


What is cshtml?

0 Answers  


How do you escape in c#?

0 Answers  


What r collections c sharp?

3 Answers  


What is generic collection in c#?

0 Answers  






Distinguish between system.string and system.text.stringbuilder classes?

0 Answers  


c# code for how to merge two sorted arrays Input : A = 2,5,8,4 B = 3,9,10,5 Output : 2,3,4,5,5,8,9,10

3 Answers  


What does out mean c#?

0 Answers  


How to force my .net app to run as administrator on windows 7?

0 Answers  


How can we set the class to be inherited, but prevent the method from being over-ridden?

0 Answers  


What tool we have to use to install assembli in gac folder.

0 Answers  


What is the difference between <c> and <code> xml documentation tag?

0 Answers  


Categories