تجمع شيتات واسئلة oop
813 subscribers
345 photos
12 videos
166 files
37 links
شوفو التثبيتات واتركو لنا دعوة جزاكم الله خيرا. 🤍
Download Telegram
parameters:

are local varibles which declared in the parameters list of a methods header and which have initial values specified by the arguments in a method call.
the scope of local varibles is referred to ad local scope
non access modifier

1.static
2 .final
3.abstract
4.synchronized and volatile modifiers
وال interface مش non access modifier
الdefult access modifier للinterface

ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)


متقدرش ادير protected او private يطلع ايرور
الاصدار التاسع. يمكن تنفيد الدوال داخل الmethods باستخدام keywords defult او private
can use keywords static
Anonymous Quiz
55%
class
45%
nested class
the static keywords belongs to the class than instance of the class
Anonymous Quiz
71%
29%
advantage of static valribles.
if makes your program memory efficient
Anonymous Quiz
81%
19%
2
static methods are found in the inreger and math class

example: sin cos max....
this and super can be used in static context
Anonymous Quiz
20%
80%
the static method cannot use non static data member or call static methods directly
Anonymous Quiz
59%
41%
الرن ايرور كمبايلر لانها مش static
1
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
ال static block تنفذ اول ما يصير رن
ال block تنفذ اول ما ادير اوبجكت
ملخص

final variable
زي الجافا متقدرش اتغير المتغيرات اتعينها مرة وحدة بس

final method
متخلش اي كلاس يدير override

final class
متخلش اي class يورث منا بس هوا يقدر يقعد وارث من حد عادي ابن يعني
5