Header Ads

  • Breaking Now

    If the method to be overridden has access type 'protected', can subclass have the access type as 'private'?

    No, it must have access type as protected or public, since an overriding method must restrict access of the method it overrides.

    Post Top Ad

    Post Bottom Ad