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 do we use delegates?

444


What is sql transaction in c#?

473


What is desktop example?

485


What is static class in C#?

563


How can encapsulation be achieved?

598






Explain About remoting and web services. Difference between them

531


What is parameterized constructor?

504


What are the differences between system.string and system.text.stringbuilder classes?

478


Explanation on Generic?

544


Overloaded constructor will call default constructor internally?

558


What is use of console?

458


What is semaphore in c#?

506


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

542


Is list passed by reference c#?

465


Can we inherit two classes in c#?

503