Java Certification 8 & 11 OCJA (1Z0 - 808 & 815)Compile time Polymorphism / Static Polymorphism

preview_player
Показать описание
Java Certification 8 & 11 OCJA (1Z0 - 808 & 815)Session-56|Compile time
polymorphism/static polymorphism/early binding,Overriding Definition,Dynamic polymorphism/runtime polymorphism
/late binding,Dynamic method dispatch,Rules for Overding:Method signature must be same,return types must be matched
-covariant return types also allowed,Overridng is not applicable to the private methods,Overriding concept not applicable
for final methods.

=================================================
java python
python
python by durgasoft
python videos by durgasoft
Python Online Training
Learn Python
Python Tutorial
python programming Tutorial
python Programming Language Tutorial
python examples
python Advanced Tutorial
python Tutorial for Beginners with examples
python Guide
python 3.0 Tutorial
python crash course
Python Tutorial for Beginners
Python Tutorial for Absolute Beginners
Python Tutorials by durgasoft
Python Programming videos by durgasir

#durgasoft #durgasir #ocja #ocja(1Z0 - 808)
Рекомендации по теме
Комментарии
Автор

53:36 "Thoda Thoda Clarity Aa Gaya" no sir "Poora clarity aa gaya" Thank you for the wonderful explanation.

AkashKumar-jlsw
Автор

In case of "Parent PC = new Child();", whats the rule ?
Because in the example below, Once it is the child who is considered and then it is the parent !!!
Thanks for answering :)


class Parent {
void mP_1(){

}
}
class Child extends Parent {
void mP_1(){

}
}
public class Test_Pere_Fils_Refernce{
public void m1(Parent A){

}
public void m1(Child m){
System.out.println("Child");
}
public static void main(String[] args){
Parent PC = new Child(); // Reference Pere/Objet Enfant
Test_Pere_Fils_Refernce Obj_1 = new Test_Pere_Fils_Refernce();

// Why in the lines below, Once it is the child and then the parent ?


PC.mP_1(); // "mP_1_Child" => Here the result is the child !
Obj_1.m1(PC); // "Parent" => Here teh result is the Parent !

}
}

soufieneouertani