Can property defined in Interface.

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extensions methods in c#?

477


How does foreach loop work in c#?

485


Explain the features of an abstract class in net.

507


What is generic in c#?

462


What are the steps to create an assembly and add it to the gac?

462






Can You Prevent Your Class From Being Inherited By Another Class?

550


What is the difference between Object and class adapters?

517


What is the use of command builder?

543


Explain the difference between // comments, /* */ comments and /// comments?

501


What is session c#?

535


What is multithreading with .net?

539


Are arraylist faster or arrays?

493


What are the benefits of using the aggregate method in linq?

505


who is a protected class-level variable available to?

546


what is difference between is and as operators in c#?

539