Why can?t you specify the accessibility modifier for
methods inside the interface?
Answer Posted / hafiz usman majeed
as by default public access is provided in c-sharp.net
classes and interfaces, and we use interfaces for
accompolishing the purpose of multiple inheritence we must
redefine all of the methods of interface in its inherited
class that implements it so all of these methods should be
publically accessible.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Give examples for reference types?
What are the types of attributes in c#?
What is the difference between mobile application and desktop application?
What can I create with c#?
What is meant by clr?
What tool we have to use to install assembli in gac folder.
What are modifiers in c#?
Why do we need constructor in c#?
Can you create partial delegates and enumerations?
how dot net compiled code will become platform independent?
What are the properties of a string class?
What is uint64?
Can you drink alcohol with a loop recorder?
What method is used to sort the elements of the array in descending order?
How much time will it take to learn unity?