+ 1
What is static binding and dynamic binding?
What is binding in Java? 😶
1 Antwort
+ 1
Static binding is compile time polimorphism that means method overloading.
class A{
public void test(){
//operation
}
}
class B extends A{
public void test(){
}
}
Dynamic binding is run time polymorphism that is method overridding
class A{
public void test(){
//operation
}
public int test(){
//operation
}
}
Binding means invoking a method or instanses.