Can property defined in Interface.

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the parts of assembly.

709


What is polymorphism and its types in c#?

637


How are delegates chosen?

641


Difference between abstract classes and interfaces

734


Is Facebook a desktop application?

661


What are circular references?

711


What is parameters in c#?

690


How long can loop recorders stay in?

871


Why do we need serialization?

661


What is reflection c#?

635


What is the purpose of static?

705


What is platform independence"?

734


What is difference between private and protected in c#?

660


I want to print "Hello" even before main() is executed. How will you achieve that?

706


Can a struct be null?

672