Can property defined in Interface.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain publishers and subscribers in events.

624


Why static variables are used?

609


What do you mean by a windows process in regards to memory allocation?

599


If you define a user defined data type by using the class keyword, is it a value type or reference type?

590


Why to use “using” in c#?

636






What is difference between iqueryable and ienumerable in c#?

525


What Is The Smallest Unit Of Execution In .net?

600


Why do we need to serialize data?

572


What are callback methods in c#?

592


What is before string in c#?

587


Explain About Global.asax

635


What is final keyword in c#?

610


What is iqueryable?

552


what happens if you inherit multiple interfaces and they have conflicting method names?

555


What do you understand by the terms datareader object and dataset object?

606