uz
Feedback
تجمع شيتات واسئلة oop

تجمع شيتات واسئلة oop

Kanalga Telegram’da o‘tish
438
Obunachilar
-224 soatlar
-27 kun
-1330 kun
Postlar arxiv
The new operator is not required to explicitly create the object that is referenced
Anonymous voting

.... and .......are the primary mechanisms for passing information into and out of an object.
Anonymous voting

احساسي هيجي ساهل. لاكن تتبع constractor يستر الله

"اللهم يا جامع الناس ليومٍ لا ريب فيه، اجمع لنا بين النجاح والتوفيق في امتحاناتنا. اللهم يسر لنا الصعاب، ووفقنا إلى ما تحب وترضى، وارزقنا فهمًا وذكاءً ونورًا في دراستنا. آمين."

FinalExam_java_with_answers_draft4_1_10_2017.pdf1.08 MB

• الترجمة فقط | @xFxBot 📚

we use it when we need to develop a code that deals with only the parent class
Anonymous voting

مقارنة مهمة
مقارنة مهمة

compile time polymorphism is nothing but the method overlloding in java
Anonymous voting

method is overriden not the datamembers so runtime polymorphism cannot be achieved by data members
Anonymous voting

و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();  
    }
}

if we perform it directly java compiler wilk give compile time error
Anonymous voting

upcasting = widening Downcasting = narrowing

sub class object type has been converted into super class type rhi is kind of conversion
Anonymous voting