syntax for writing private method in a interface

Answer Posted / anna

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

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is final keyword in c#?

535


What is the difference between int.parse and int.tryparse methods?

570


Explain the difference between // comments, /* */ comments and /// comments?

503


How do you declare an interface in c#?

490


What is dapper in c#?

468






What is an object and a class?

561


What are controls in c#?

482


Why do we use 0?

508


What is a static property. Give an example?

526


What is difference between ilist and list in c#?

488


Explain about Oops concept

554


What are virtual destructors?

511


What is a dynamic assembly?

531


Why cannot you specify the accessibility modifier for methods inside the interface?

497


Can you declare a field readonly?

546