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 is difference between encapsulation and abstraction in c#?
Why do we use methods in c#?
What is a di class?
What is a virtual property. Give an example?
Is xamarin free?
Why delegates are required?
What is the purpose of private constructor in c#?
What is datareader c#?
Illustrate serialization?
What are the three types of operators?
What are the different types of assembly?
How string definitions will prevent escaping on backslashes in C#?
What are interfaces in c#?
What is form feed in c#?
Why reflection is used in c#?