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

Is c# static or dynamic?

497


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?

487


Explain the various types of classes used in c#?

495


Is string nullable in c#?

453


Describe two uses of the “using” statement during the operation of c#?

545






Give examples for reference types?

531


Are c# generics the same as c++ templates?

495


What is ControlBox Propertie

571


What is xamarin used for?

506


Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

509


What is the use of generics in c#?

466


Why do we Need of static class in c#?

640


How many bytes is an int c#?

487


Why do we parse in c#?

464


Give some examples of commonly used i/o classes?

490