Can we define a variable with the access modifier private
in an interface?

Answer Posted / bindu sharma

No,In an interface we cannot declare any variable either it
is public or private or any other access modifiers.

Is This Answer Correct ?    29 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why should you override the tostring() method?

758


How do I create a .exe file?

695


How to implement an object pool in c#.net.

775


What are the fundamental oop concepts?

679


What is difference between the "throw" and "throw ex" in .net?

671


explain the nature of the assembly work?

2312


What is console application with example?

679


Explain publishers and subscribers in events.

710


What do you mean by generic class in c#?

662


What is asynccallback c#?

696


Will the following code compile and run?

723


How do you inherit a class into other class in c#?

668


What are the Types of assemblies that can be created in dotnet

869


Explain about generics in c#.net?

713


Do loops in c#?

662