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

How does dictionary work in c#?

471


Explain the functionalities of satellite assembly?

544


Explain how obfuscator works in .net

547


What are the principles of delegation?

486


Differentiate between response.expires and response.expiresabsolute?

539






How objects are stored in memory?

495


What is arraylist c#?

459


Is datetime a value type in c#?

489


Does c# have a 'throws' clause?

573


Is c# good for beginners?

471


What are the different types of constructors?

506


What is the default value of decimal in c#?

484


What is a jagged array?

484


In which situation(s), the use of "Delegate" is a good idea?

542


What is int parse in c#?

484