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

If you define a user defined data type by using the class keyword, is it a value type or reference type?

684


What is the difference between dictionary and hashtable in c#?

664


What exactly is serverless?

582


What are the 3 elements of delegation?

676


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

704






Can you create an instance of a static class?

731


Which are the loop types available in c#?

656


Is for loop faster than foreach?

720


Explain the process of inheriting a class into another class?

705


What are the properties of string?

671


What is bit in c#?

713


Difference between directcast and ctype.

725


Is post back in c#?

694


What is the difference between class and namespace?

650


Can abstract class be instantiated c#?

695