Dynamic binding (aka dynamic dispatch) is the process of mapping a message to a specific piece of code (method) at runtime.
Questions tagged [dynamic-binding]
257 questions
2
votes
2 answers
What are static and dynamic binding in C (strictly C,not C++)?
I had initial apprehensions about posting this question lest it be a duplicate.But even after googling with many keywords,I couldn't find any link on StackOverflow that explains static and dynamic binding for C.There are questions and answers for…

Rüppell's Vulture
- 3,583
- 7
- 35
- 49
2
votes
1 answer
Temporarily overriding compilation mode regexp alist: dynamic binding weirdness?
I'm working on a program mode, which has various different calls to assemblers, programmers and other external programs. My cunning plan was to handle all of these with the compile function, passing an explicit compile-command that depends on which…

Rupert Swarbrick
- 2,793
- 16
- 26
1
vote
1 answer
Binding within Constructors within Constructors
Possible Duplicate:
Calling virtual functions inside constructors
in C++, An object of class B derived from class A, in C++ the c’tor of A is invoked before the c’tor of B , why ?
And what happens if A’s C’tor invokes a virtual function? does it…

nabil
- 904
- 3
- 12
- 28
1
vote
2 answers
Binding type for a non-overriden virtual function
Consider the case where a virtual function in base class is not
overriden in the derived class. Then using a base class pointer to a
derived class objectthe virtual function is invoked.
I understand that the function invocation will be…

nitin_cherian
- 6,405
- 21
- 76
- 127
1
vote
4 answers
Using the power of virtual functions
Consider the following sample code:
class Base {
public:
void f();
virtual void vf();
};
class Derived : public Base {
public:
void f();
void vf();
};
#include
using namespace std;
void Base::f() {
cout << "Base…

nitin_cherian
- 6,405
- 21
- 76
- 127
1
vote
1 answer
MVC - Dynamic binding to multiple databases using Ninject?
I have a small MVC application that connects to a single MYSQL database. I had it setup with Ninject to bind the connectionString during the application startup. The code looked like this:
Global.asax.cs:
protected void Application_Start()
{
...
…

John Lee
- 1,357
- 1
- 13
- 26
1
vote
3 answers
In java, if a method NOT inherited by any subclass is called, whether dynamic binding or static binding is used?
In java, if a method NOT inherited by any subclass is called, whether dynamic binding or static binding is used?
I know it won't make any difference to the output in this particular case, but just wanted know this.
user966892
1
vote
0 answers
difference between __got section and __nl_symbol_ptr section
Both of them are labeled as S_NON_LAZY_SYMBOL_POINTERS and are bound at load time. However, I only see the __DATA__CONST.__got section in most Mach-O files.
What's the difference between them and why I can't locate the __DATA.__nl_symbol_ptr…

Evan
- 430
- 6
- 16
1
vote
3 answers
Which methods are dynamically bound in Java?
What the question says, which methods are dynamically bound in Java?
Coming from C++, if I am not mistaken, most methods are statically bound with a few exceptions.

Henry Z
- 163
- 8
1
vote
1 answer
How Dynamic Binding (with hiding) works?
I have been practicing Dynamic Binding (with hiding) and i came across a code block like below.
The output of the program is:
"I am a B"
And I just couldn't understand it.
Can anyone can explain it to me? Thanks in advance.
class A
{
public…

umadik
- 101
- 2
- 17
1
vote
1 answer
Nuxt Dynamic V-model
I'm having difficulty binding my custom input to data(). I've tried several combinations to try to get it working and so far only the placeholder seems to work. I created an array called questions and its content is dynamically rendered to the page.…

Guillermo Medel
- 47
- 1
- 7
1
vote
1 answer
Is it possible to inherit a class with generics when the base class also has generics?
I apologize for the confusing title, I'm not quite sure how to word my issue concisely.
Here, I have a class structure that does not compile.
class MyEvent
{ }
class EventA : MyEvent
{ }
class EventB : MyEvent
{ }
class MyEventHandler
…

Jake Bickle
- 58
- 7
1
vote
1 answer
Springboot application with dynamic rest api calls using kubernetes cluster
My spring boot application needs to call or consume rest api from another spring boot application.
I want to use Kubernetes to manage my application and its multiple instances. But I am struggling to get rest-endpoint of another service.
Lets…

Nailesh
- 153
- 1
- 8
1
vote
1 answer
C++ Mixin - Dynamic Binding During Initialization idiom
I have a hierarchy of classes for which I want to use polymorphism to call the correct member functions.
On a basic level this works, but I encountered a problem when trying to use a Mixin class to extend or change the functionality of some class.…

NKay
- 120
- 1
- 7
1
vote
1 answer
Why do we need dynamic binding (Java)?
I've read many articles on the difference between static binding and dynamic binding in Java, but none of them really talk about why we need dynamic binding. Why is it that some code should only be bonded during runtime? Why can't all code be bonded…

Ryn
- 441
- 2
- 10