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
Can hashtable have duplicate keys in c#?
Why is .net so popular?
How do you serialize in c#?
Why does my windows application pop up a console window every time I run it?
Can a struct inherit from another struct or class in c#?
What is streamreader/streamwriter class?
What are strings in c#?
Is null c# operator?
What is expandoobject in c#?
What is the use of oops in c#?
What are the uses of namespaces?
What is a thread c#?
Explain the types of assemblies in .net?
What is a private class in c#?
Explain the difference between “as” and “is” operators used in c#?