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?s a satellite assembly?

1 Answers  


Name some properties of thread class.

0 Answers  


What is interface c#?

0 Answers  


To whom a method is accesssed if it is marked as protected internal ?

0 Answers   Siebel,


code to generate a excel sheet and to write data into it --- -it has to fetch the excel sheet which is in one folder placed by us inside a project folder(i,e it has to create a instance of that excel sheet) and write the data into it row by row please respond as early as possible

1 Answers  


How can i load the text box and label at the runtime based on the existing text box and tabel

2 Answers   Merrill Lynch, Patni,


How cache is implemented in web application for DB queries?

2 Answers   TCS,


Is string nullable in c#?

0 Answers  


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

0 Answers  


hi my question is about understanding a text the user entered to a site , so i want to analyse that text looking for some specific items such as "honda" "shoffere" etc.. so if this site could help or could tell me where to go with such question ,i wonder. thanks

0 Answers  


What is delimiter in c#?

0 Answers  


What is the main purpose of xml?

0 Answers  


Categories