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
Which are access modifiers available in c#?
Why do we need abstraction in c#?
What is a di class?
What are Regex / regular expressions ?
What do you mean by the delegate in c#?
What is the difference between throw and throw ex?
What is use of singleton class in c#?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.
What does executescalar return in c#?
What is or operator in c#?
What is lazy t?
What are the steps to make an assembly to public?
Where is the main method in c#?
How can you force derived classes to provide new method implementations for virtual methods?
What is file extension of webservices?