non access modifier
1.static
2 .final
3.abstract
4.synchronized and volatile modifiers
1.static
2 .final
3.abstract
4.synchronized and volatile modifiers
الdefult access modifier للinterface
ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)
متقدرش ادير protected او private يطلع ايرور
ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)
متقدرش ادير protected او private يطلع ايرور
❤2
تجمع شيتات واسئلة oop
advantage of static valribles.
if makes your program memory efficient
if makes your program memory efficient
هذي advantage مش هدفها الاساسي
static methods are found in the inreger and math class
example: sin cos max....
example: sin cos max....
the static method cannot use non static data member or call static methods directly
Anonymous Quiz
59%
✅
41%
❌
constants in a class are shared by all object of the class... thus constants should be declared
Anonymous Quiz
50%
static
13%
final
37%
final static
ملخص
final variable
زي الجافا متقدرش اتغير المتغيرات اتعينها مرة وحدة بس
final method
متخلش اي كلاس يدير override
final class
متخلش اي class يورث منا بس هوا يقدر يقعد وارث من حد عادي ابن يعني
final variable
زي الجافا متقدرش اتغير المتغيرات اتعينها مرة وحدة بس
final method
متخلش اي كلاس يدير override
final class
متخلش اي class يورث منا بس هوا يقدر يقعد وارث من حد عادي ابن يعني
❤5
المتغيرات ال final اللي مش عاطيها قيمه في ال attributes
تسمى blank final variable or uninitilized final variable
يعني اتحددلها قيمتها باستخدام الconstractor او static block
تسمى blank final variable or uninitilized final variable
يعني اتحددلها قيمتها باستخدام الconstractor او static block