Can we define a variable with the access modifier private
in an interface?

Answer Posted / arpita malviya

Interface cannot contains fields , irrespective of its
access modifier.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to sort an array in c#

648


What exactly is serverless?

494


What is difference between continue and break in c#?

578


What does it mean to override a method?

538


What is escape character in c#?

588






What is the advantage of extension method in c#?

555


Give an example of a directcast.

592


What do you understand by the terms datareader object and dataset object?

609


Can you change the value of a constant filed after its declaration?

596


Why main method is static in c#?

567


What are the properties of a string class?

590


How to find the current application file path while runtime?

581


What are reflections in c#?

576


Can you inherit from a static class in c#?

562


Difference between debug.write and trace.write?

614