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

Name some properties of thread class.

554


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

528


Explain About ADO and its objects

578


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

521


How does dictionary work in c#?

480






Perfect Example Of While And Do-While Loop In C#.Net ?

573


To create a localized application which namespaces are necessary?

528


What is an object pool in .net?

657


If I return out of a try/finally in c#, does the code in the finally-clause run?

561


Can you have parameters for static constructors?

542


What is c# windows form application?

503


Illustrate serialization?

516


What is the property of a class in c#?

499


Can we have two main methods in c#?

537


Can you explicitly call a destructor?

534