Interview Questions

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

C# Interview Questions and Answers


(Continued from previous question...)

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

They all must be public, and are therefore public by default.

(Continued on next question...)

Other Interview Questions