تجمع شيتات واسئلة oop
Kanalga Telegram’da o‘tish
438
Obunachilar
-224 soatlar
-27 kun
-1330 kun
Postlar arxiv
المتغيرات ال final اللي مش عاطيها قيمه في ال attributes
تسمى blank final variable or uninitilized final variable
يعني اتحددلها قيمتها باستخدام الconstractor او static block
ملخص
final variable
زي الجافا متقدرش اتغير المتغيرات اتعينها مرة وحدة بس
final method
متخلش اي كلاس يدير override
final class
متخلش اي class يورث منا بس هوا يقدر يقعد وارث من حد عادي ابن يعني
constants in a class are shared by all object of the class... thus constants should be declared
the static method cannot use non static data member or call static methods directly
static methods are found in the inreger and math class
example: sin cos max....
advantage of static valribles.
if makes your program memory efficient
the static keywords belongs to the class than instance of the class
الاصدار التاسع. يمكن تنفيد الدوال داخل الmethods باستخدام keywords defult او private
الdefult access modifier للinterface
ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)
