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

What operators can be used to cast from one reference type to another without the risk of throwing an exception?

522


What is data type in c# with example?

528


What is callback method in c#?

492


Explain the difference between object type and dynamic type variables in c#?

499


What is c# entity framework?

494






What are the Configuration files in .net?

515


Why are local variables stored in stack?

556


What basic steps are needed to display a simple report in crystal?

540


What is enum in c#?

536


Explain the role of the datareader class in ado.net connections?

470


If I want to override a method one of class A and in class b then how do you declare?

748


What is console readkey in vb net?

645


Why do we use abstraction in c#?

476


What sort algorithm does c# use?

513


Can we override interface method?

532