تجمع شيتات واسئلة oop
812 subscribers
345 photos
12 videos
166 files
37 links
شوفو التثبيتات واتركو لنا دعوة جزاكم الله خيرا. 🤍
Download Telegram
الupcasting توصل في دوال الاب فقط الا اذا كان فيه override

والا هيصير كومبايلر تايم ايرور
1
sub class object type has been converted into super class type rhi is kind of conversion
Anonymous Quiz
25%
upcasting
35%
Downcasting
4%
widenning
36%
A&C
upcasting = widening
Downcasting = narrowing
if we perform it directly java compiler wilk give compile time error
Anonymous Quiz
37%
upcasting
63%
Downcasting
class One {
// طريقة m1
public void m1() {
System.out.println("m1 method in class One");
}
}

// الفئة الفرعية Two التي تمتد من One
class Two extends One {
// طريقة m2
public void m2() {
System.out.println("m2 method in class Two");
}
}

// الفئة Test تحتوي على دالة main
public class Test {
public static void main(String[] args){
One N=new One ();
Two t = (Tow) N ;


//t.m1();
t.m2();
}
}
في ورقة ناقصة كنكم خايفين
method is overriden not the datamembers so runtime polymorphism cannot be achieved by data members
Anonymous Quiz
42%
58%
compile time polymorphism is nothing but the method overlloding in java
Anonymous Quiz
62%
38%
مقارنة مهمة
3
we use it when we need to develop a code that deals with only the parent class
Anonymous Quiz
77%
upcasting
23%
Downcasting
Forwarded from زهور أحمد
oop ملخص نظري لل-ar2.pdf
1 MB
• الترجمة فقط | @xFxBot 📚
4
Forwarded from لَيطمِئن قــلَبّــكَ (𝑀𝒶𝓌𝒶𝒹𝒶 𝒜𝓁𝒶𝓂𝒶𝓇𝓎)
"اللهم يا جامع الناس ليومٍ لا ريب فيه، اجمع لنا بين النجاح والتوفيق في امتحاناتنا. اللهم يسر لنا الصعاب، ووفقنا إلى ما تحب وترضى، وارزقنا فهمًا وذكاءً ونورًا في دراستنا. آمين."
22
احساسي هيجي ساهل. لاكن تتبع constractor يستر الله
💔4👍1