Why can?t you specify the accessibility modifier for
methods inside the interface?

Answer Posted / swapna

They all must be public. Therefore, to prevent us from
getting the false impression that we have choice to access,
so we are not allowed to specify any accessibility, it's
public by default.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does question mark mean in c#?

662


What is datatable and dataset in c#?

551


What are delegates in C#?

643


Is null or empty in c#?

626


What is dbcontext c#?

590






What does immutable mean in c#?

600


What is or operator in c#?

617


Why is c# used?

559


what is main function of alternate teamplate of datalist?

1746


Explain the difference between user control and custom control. Also, explain their use.

679


What is Fragmentation and its Types?

639


Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!

16739


How do I format a string in c#?

555


What is the differences between datagrid, datalist and repeater in .net?

565


Is friend a constructor?

591