syntax for writing private method in a interface

Answer Posted / vanitha

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

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can’t struct be used instead of class for storing entity?

471


What is the predicate of a sentence?

477


Constructor to an arbitrary base constructor?

555


If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.

542


List out the differences between array and arraylist in c#?

517






Explain dataset.acceptchanges method in .net?

535


What is a console device?

473


What is the difference between method and constructor in c#?

452


Can a string be null c#?

489


What is use of list in c#?

444


How to implement a singleton design pattern in c#?

467


What are the various components in crystal reports?

496


What is an escape sequence? Name some string escape sequences in c#.

511


What are some of the commonly used commands in sqlcommand?

484


Can you inherit from a sealed class?

480