CAN WE DEFINE PRIVATE AND PROTECTED MODIFIERS FOR VARIABLES IN INTERFACES?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 567  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Can we define private and protected modifiers for variables in interfaces?

    No, they are implicitly public.

Answer

NEWSLETTER

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