Can we define a variable with the access modifier private
in an interface?
Answer Posted / rajat
No you cannot.
1. Because an interface cannot contain fields.
2. For methods also, you cannot give an access modifier
(public / private). By default, the methods will be public
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
How do I edit a dll file?
What is delegates and events?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
What do u mean by thread safe?
Value Type and Reference Type Data type in C#?
What is different between Implicit conversion and Explicit conversion in C#?
What are strong name assemblies?
Explain circular reference in c#?
What are custom exceptions?
What is asynchronous one-way calls?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
What are circular references? How garbage collection deals with circular references.
What is the difference between list and array in c#?
What are the differences between static, public and void in c#?
Why do we use struct in c#?