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
Are structs value types c#?
Why do we use inheritance in c#?
What is a verbatim string literal and why do we use it?
Which is faster hashtable or dictionary?
Are c# strings null terminated?
What is the difference between class and namespace?
What is a static property. Give an example?
Differentiate between object pooling and connection pooling in c#?
What is a class in unity?
What is difference between throw and throws in c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is the purpose of a constructor in c#?
What are the 2 broad classifications of fields in c#?
Why do we need to override in c#?
How can an inner class access the members of outer class?