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

List the fundamental oop concepts?

513


What do you mean by stack and heap in c#?

481


What is equal c#?

502


For read-only operation which property you have to designated?

551


Why do we overload constructors?

481






What is an abstract class c#?

476


How many bytes is a char c#?

480


What is definition in c#?

472


What is an example of delegation?

494


What is an Interface in C#?

536


Illustrate the process of code compilation in c#?

518


What do you mean by jagged arrays in c#?

474


What is Delegate and what is it used for ?

573


What is the difference between var and dynamic types in c# 4.0?

506


Will the following code compile and run?

548