• Post Reply Bookmark Topic Watch Topic
  • New Topic

statically bound & dynamically bound means??  RSS feed

Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of the study notes I found on the net I found these lines which
I am not able to understand.
What does statically bound and dynamically bound means?
* Private method calls are statically bound ... a method will call
the private method in the class where it is defined .. even if the
calling method is inherited by a derived class and the derived
class defines a method with the same signature as the private method.
* Calls to public and protected methods in the same class are dynamically
bound ... even for constructors (and from private methods). This is
different to C++.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!