ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Why java do not have access specifier ?

user-image
تم إضافة السؤال من قبل Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
تاريخ النشر: 2014/12/27

Note that you can't reduce the visibility of a method or field as it would cause issues with passing the subclass to a method that needs the superclass.

mohamad saeed al sayed suliman
من قبل mohamad saeed al sayed suliman , Senior Software Engineer , Saudi Telecom Company - Stc

it have4 access specifiers [ Private, Default, Protected, Public ]

 

In Java, the physical mechanism of inheritance is used only for classes that are intended to logically inherit from their superclass.

 

Meanwhile java is a pure Object Oriented language.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟