CAN YOU SPECIFY THE ACCESSIBILITY MODIFIER FOR METHODS INSIDE THE INTERFACE?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1215  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Can you specify the accessibility modifier for methods inside the interface?

    All the methods inside an interface are always public, by default. You cannot specify any other access modifier for them.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!