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

Why we use methods in c#?

555


What is enumerable in c#?

472


What is the namespace for the thread class?

508


Why singleton is sealed?

476


What are the uses of namespaces?

602






What is expression c#?

498


Is a dll an assembly?

474


What does static mean in c sharp?

566


What is a hash table in c#?

506


Can you specify an access modifier for an enumeration?

510


What are the 3 logical operators?

553


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

529


What is a c# delegate?

601


What do you mean by for each loop?

477


How long can loop recorders stay in?

594