Why can?t you specify the accessibility modifier for methods
inside the interface?

Answer Posted / kumar vaibhav

Because Interface provides different implementation within calling class.So it should be public.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define delegate?

621


What is the difference between integer and double?

555


Explain about multithreading?

627


Is stringbuilder faster than string concatenation c#?

561


How do I create multifile assembly?

603






How long can a string be c#?

574


What is assembly c#?

557


Can we inherit two classes in c#?

603


Describe how a .net application is compiled and executed

591


Can an abstract class inherit from another abstract class c#?

629


Why do we need dependency injection in c#?

551


What is poco c#?

578


Can you inherit from a static class in c#?

562


What is the difference between Java and .NET garbage collectors?

595


Can an interface extend a class c#?

605