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
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 is the use of delegate?
What are the different types of classes?
What are the different types of constructors?
What are the fundamental oop concepts?
What is the purpose of private constructor in c#?
How do you escape a character?
What is instantiating a class in c#?
How many parameters can a method have c#?
In which order the constructor is called for an inherited class?
What do u mean by delegation of authority?
How to implement a singleton design pattern in c#?
What is the difference between IEnumerator and IEnumerable?
What do you mean by generic class in c#?
What is the difference between a method and a property?