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

Is int reference type c#?

710


What are satellite assemblies? How will you get the different language strings?

713


What is string in c# net?

685


What is c-sharp (c#)?

724


can you create a function in c# which can accept varying number of arguments

818


What is difference between c sharp and c#?

665


Write a program in c# to find the angle between the hours and minutes in a clock?

706


What are the 3 elements of delegation?

724


How many aware interfaces are there?

657


What is multithreading with .net?

767


What is executereader in c#?

664


Why is c# good for games?

729


What is sorting in c#?

689


Can a class have more than 1 destructor?

739


How do you prevent a class from being inherited?

717