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

Any problem found in vs.et

575


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

575


Overloaded constructor will call default constructor internally?

555


Why do we use abstraction in c#?

466


What is deferred execution?

470






Does c# have a 'throws' clause?

569


What is clr in c#?

481


What is difference between constants and readonly in c#?

476


What is the use of tuple in c#?

499


Which sorting algorithm is best?

549


Where are value types stored in c#?

511


What is xml serialization in c#?

461


How to use reflection to call generic method?

487


Major difference between Basic httpbinding and WShttpbinding?

574


What is the use of dll file in c#?

457