Explain dynamically bound and static methods
java
Solution
Dynamic binding means that the decision as to which code is run is made at runtime. This is the basis of polymorphism.
Public, package access and protected methods are dynamically bound. Subclasses can override the methods and provide alternative implementations. Private methods cannot be overridden, so dynamic binding is not needed for them.
Static methods are not dynamically bound (the clue's in the name) as they are defined on the class itself rather than being unique to each object.
Problem
I"m a little confused on how private methods can be static and but public must be dynamically bound.