أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
because those methods are we are using present class object onlyy we can use other packages..other class object and other sub class object we can't use those methods.senario so we are using protected modifier those methods