syntax for writing private method in a interface

Answers were Sorted based on User's Feedback



syntax for writing private method in a interface..

Answer / vanitha

An interface cannot have private methods. All the member
declarations inside interface are implicitly public.

Is This Answer Correct ?    20 Yes 2 No

syntax for writing private method in a interface..

Answer / pankaj

we cnt write private methods in an interface.as we have to
inherit that method its by default on public scope

Is This Answer Correct ?    12 Yes 0 No

syntax for writing private method in a interface..

Answer / anna

we can't have private methods in in interface.
by default all are public

Is This Answer Correct ?    9 Yes 0 No

syntax for writing private method in a interface..

Answer / 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

syntax for writing private method in a interface..

Answer / sudhir kunnure

we create interface for inherite to classes, and Private
methods can only access within class not inherited class.so
you cannot create Private methods in Interface.

Is This Answer Correct ?    5 Yes 0 No

syntax for writing private method in a interface..

Answer / uma

By default all methods in the interface are not just
public !!!!! They are Public abstract.

Because methods of Interface will get override in the
Derived classes

Is This Answer Correct ?    2 Yes 0 No

syntax for writing private method in a interface..

Answer / manoj dhanik

we cannot change the access modifier of methods private inside interface....n all the methods of interface should be implement in derived class..so the methods should not private

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is the difference between hashtable and dictionary in c#?

0 Answers  


What?s a satellite assembly?

1 Answers  


What is multicast delegate explain with example?

0 Answers  


Which is the best institute in hyderabad to learn Sharepoint Portal?

68 Answers   IBM,


Is a games console a computer?

0 Answers  


What is the difference between abstract and abstraction?

0 Answers  


What is view model in c#?

0 Answers  


Can u list some style properties of List Box?

0 Answers   CGI,


what is the difference between the debug class and trace class?

0 Answers   Rolta,


What does writeline mean?

0 Answers  


Describe two uses of the “using” statement during the operation of c#?

0 Answers  


What namespace is list in c#?

0 Answers  


Categories