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 is a clr host?

632


How many types of constructor are there in c#?

557


What is difference between string and string builder?

600


Is c# the same as d flat?

592


What is strongly typed view?

582






Is the following code legal?

651


What is literal in c#?

554


What is the difference between list and dictionary in c#?

543


What is a class in unity?

563


What is c# most used for?

647


Can constructor be overloaded in c#?

558


What is c-sharp (c#)?

623


What is a generic in c#?

575


What is file extension of webservices?

651


Is array passed by reference in c#?

591