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 purpose of dependency injection?

666


Which sorting algorithm is best?

721


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

768


What is a hash table c#?

624


Name which controls do not have events?

753






Is clr a compiler?

642


Can constructor be overloaded in c#?

632


What are the different types of delegation?

614


So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?

661


What is clr in c#?

623


What is the use of console?

645


What is console programming language?

660


how can one use hcl and c sharp together?

1758


What are the types of class in c#?

673


Why do we Need of static class in c#?

797