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


Please Help Members By Posting Answers For Below Questions

How do you implement thread synchronization in c#?

548


Explain constructor in c#?

823


Explain about WSDL

697


What is check/uncheck?

700


Is there a way of specifying which block or loop to break out of when working with nested loops?

629






Can we inherit a private class in c#?

540


Which namespaces are necessary to create a localized application?

690


What do you mean by streamreader/streamwriter class in c#?

605


Differentiate between copy and default constructor.

668


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

561


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

602


What is written in c#?

659


Can a struct be null?

579


What is stringreader in c#?

560


What is wrong with the sample program below?

599