تجمع شيتات واسئلة oop
Kanalga Telegram’da o‘tish
438
Obunachilar
-224 soatlar
-27 kun
-1330 kun
Postlar arxiv
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();
}
}
كم طلع معاكم الرنInheritance:what is the output?
What is the Inheritance?
Repost from لَيطمِئن قــلَبّــكَ
جَعلها ربيِّ جُمعَة خير لنا ولكُم
مُكفرةٌ للخطايا فاتِحة للأرزاق ياربّ 🤍.
Repost from لَيطمِئن قــلَبّــكَ
﴿ إِنَّ اللَّهَ وَمَلَائِكَتَهُ يُصَلُّونَ عَلَى النَّبِيِّ ۚ يَا أَيُّهَا الَّذِينَ آمَنُوا صَلُّوا عَلَيْهِ وَسَلِّمُوا تَسْلِيمًا ﴾
الconstractor وclass وinterface بلاحرف الكابتل
الmethods package variable بلاحرف السمول
مديرش ايرور لو كتبت بجوك بس في شيت مكتوبة هكي الافضلية هكي
