syntax for writing private method in a interface

Answer Posted / jayamala

By default interface is public.Interface is accessed by
another class it should be public.so we cant write it as a
private.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are access modifiers in c#?

541


What is the difference between decimal and integer?

514


What are the uses of delegates in c#?

569


Why abstract class can not be instantiated?

438


Can hashset contain duplicates c#?

458






What is difference between for and foreach loop in c#?

524


What are nested classes in c#?

538


What is the default modifier for class in c#?

504


What is boolean conditions in c#?

493


Which is more efficient for loop or while loop?

460


can you declare an override method to be static if the original method is not static?

546


How many aware interfaces are there?

474


What is the use of tryparse in c#?

457


What is the difference between paramaterized constructor and copy constructor?

498


can multiple catch blocks be executed for a single try statement?

519