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

Answer Posted / bindu sharma

No,In an interface we cannot declare any variable either it
is public or private or any other access modifiers.

Is This Answer Correct ?    29 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between “finalize” and “finally” methods in c#?

554


What is using directive in c#?

615


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

663


Is c and c# the same?

578


What is delegates in c#?

590






What is an object and a class?

641


What is using keyword?

607


What is the base class of all classes in c#?

600


When should I throw an exception?

651


Does unity require coding?

610


Is as operator in c#?

557


Write a program to find the angle between the hours and minutes in a clock

569


Why data types are important?

600


What is xml serialization in c#?

554


I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??

1609