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
Why do we use delegates?
What is sql transaction in c#?
What is desktop example?
What is static class in C#?
How can encapsulation be achieved?
Explain About remoting and web services. Difference between them
What is parameterized constructor?
What are the differences between system.string and system.text.stringbuilder classes?
Explanation on Generic?
Overloaded constructor will call default constructor internally?
What is use of console?
What is semaphore in c#?
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?
Is list passed by reference c#?
Can we inherit two classes in c#?