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
What is class sortedlist underneath?
What is the best dependency injection c#?
What is the difference between finally and finalize block?
What is difference between constants and readonly in c#?
What is action c#?
Explain the serialization in .net
What’s a strong name?
How to prevent the error while updating ui control from another thread?
What you mean by inner exception in c#?
How main method is called in c#?
In .Net, what is an assembly? Also explain the type of assembly.
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
What is the use of static members with example using c#.net.
What are types of constructor?
What is reflection in c#?