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

Why are mutable structs evil?

737


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

784


What are jump statements in c#?

699


Explain acid rule of thumb for transactions in c#.

746


What is strong data type in c#?

688


Explain the difference between “constant” and “read-only” variables used in c#?

802


What is access specifier in c#?

798


What is the max value of int32 in c#?

695


Can we overload the main method in c#?

701


What is thread and explain states of a thread in c#?

673


Why do we need escape characters?

676


What are the fundamental principles of oo programming?

829


What is a framework in c#?

692


Can I call a virtual method from a constructor/destructor?

700


Explain About remoting and web services. Difference between them

759