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

How does substring work in c#?

581


What is int64 in c#?

570


Can we inherit private members of class in c#?

654


What is the difference between list and arraylist c#?

607


What is a class c#?

549






What is the default modifier for class in c#?

595


What are verbatim strings in c#?

573


What is sorted list in c#?

580


What is difference between field and property in c#?

525


Why do we need constructor?

570


What is difference between dictionary and hashtable in c#?

510


What Is A Multicast Delegate?

630


What is an assembly qualified name? Is it a filename? How is it different?

574


What is static variable in c#?

574


What is property c#?

590