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
How the versioning applies to Assemblies or can you explain version numbers?
What is a clr (common language runtime)?
Explain the Abstract class in c#.net
What is a trace and asset? Explain some differences?
What's the difference between system.string and system.text.stringbuilder classes?
How does c# achieve polymorphism?
Describe the types of comments in c#?
What is a satellite assembly in c#?
How many variables do you need?
Do unused Namespaces in c# affect run-time performance?
Why do we use static class in c#?
Is stringbuilder faster than string concatenation c#?
What is tryparse c#?
Explain the role of Garbage collector and its generations?
What is difference between association, aggregation and inheritance relationships?