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


Please Help Members By Posting Answers For Below Questions

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.

3804


What is the use of delegate?

529


What are the different types of classes?

480


What are the different types of constructors?

510


What are the fundamental oop concepts?

530






What is the purpose of private constructor in c#?

551


How do you escape a character?

491


What is instantiating a class in c#?

484


How many parameters can a method have c#?

487


In which order the constructor is called for an inherited class?

538


What do u mean by delegation of authority?

532


How to implement a singleton design pattern in c#?

475


What is the difference between IEnumerator and IEnumerable?

680


What do you mean by generic class in c#?

498


What is the difference between a method and a property?

460