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

What are the advantages of using assemble language programming?

712


Is for loop faster than foreach?

739


What is the importance of closing an ado.net application?

677


What is string interpolation in c#?

725


Is collection a data structure?

722


What is difference between overloading and short circuiting?

694


Define parsing? Explain how to parse a datetime string?

720


Does a class need a constructor c#?

681


What is difference between private and protected?

733


What is the use of GC.KeepAlive Method?

904


Can an array be null c#?

715


Explain the types of errors in c#?

656


Is comparable a functional interface?

682


What are Types of assemblies that can be created in dotnet

773


How is a loop recorder monitored?

711