تجمع شيتات واسئلة oop
812 subscribers
345 photos
12 videos
166 files
37 links
شوفو التثبيتات واتركو لنا دعوة جزاكم الله خيرا. 🤍
Download Telegram
الرن ايرور كمبايلر لانها مش 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
الconstractor. متجش معاها final او static
5
المتغيرات ال final اللي مش عاطيها قيمه في ال attributes
تسمى blank final variable or uninitilized final variable

يعني اتحددلها قيمتها باستخدام الconstractor او static block
نلتقى غدا في inheriance وabstract وconstractor inheriance
2
بعدها الinterface وpolymorphism
1
كمل المنهج
1
الconstractor وclass وinterface بلاحرف الكابتل

الmethods package variable بلاحرف السمول


مديرش ايرور لو كتبت بجوك بس في شيت مكتوبة هكي الافضلية هكي
3👍1
Forwarded from لَيطمِئن قــلَبّــكَ (𝑀𝒶𝓌𝒶𝒹𝒶 𝒜𝓁𝒶𝓂𝒶𝓇𝓎)
﴿ إِنَّ اللَّهَ وَمَلَائِكَتَهُ يُصَلُّونَ عَلَى النَّبِيِّ ۚ يَا أَيُّهَا الَّذِينَ آمَنُوا صَلُّوا عَلَيْهِ وَسَلِّمُوا تَسْلِيمًا ﴾
Forwarded from لَيطمِئن قــلَبّــكَ (𝑀𝒶𝓌𝒶𝒹𝒶 𝒜𝓁𝒶𝓂𝒶𝓇𝓎)
جَعلها ربيِّ جُمعَة خير لنا ولكُم
مُكفرةٌ للخطايا فاتِحة للأرزاق ياربّ 🤍.
java
public class A{
private int x=0;
public A(){ this(x); x++; System.out.print(x);}
public A(int x){ this.x+=x;}
public A(int x,int y){ this.x+=y+x;}
}
public class B extends A{
private int x=17;
public B(){ this(2,2);
System.out.print(x); }
public B(int x,int y){ super(x,y); }
}
public class programs5{
public static void main(){
A obj=new B();
}
}

كم طلع معاكم الرن
1