Can we define a variable with the access modifier private
in an interface?
Answer Posted / murugavel
No..Not possible. Interface is only having methods. We can't
declare variables on it. The methods also be a public.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the 3 elements of delegation?
Can we have static indexer in c#?
Are all methods virtual in c#?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
Why is dll used?
What is a namespace server?
Overloaded constructor will call default constructor internally?
What are logical operators in c#?
What is extension method in c sharp?
How is a loop recorder monitored?
Why is ienumerable used?
What is web forms in c#?
Is it good to use var in c#?
What is task parallel library?
What is the difference between abstract class and interface in c#?