Can property defined in Interface.

Answer Posted / pramodgupta20

You can declare the property in interface and define it in
the class which implements the interface.

int GetUser{get; set;}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of console readkey in c#?

494


What are Memory foot print of an exe?

509


What does an indexer do?

480


What are verbatim strings in c#?

497


Why do I get a security exception when I try to run my c# app?

552






Can derived classes have greater accessibility than their base types?

547


What does string intern do?

490


State the top.NET class that everything is derived from?

525


Differentiate between the public and private ?

567


Explain the difference between abstract class and interface in .net?

475


What are tuples c#?

502


List out the differences between array and arraylist in c#?

527


Can a abstract class have a constructor?

468


Which is better interface or abstract class in c#?

445


Explain about Serialize and MarshalByRef?

551