Questions tagged [dynamic-binding]

Dynamic binding (aka dynamic dispatch) is the process of mapping a message to a specific piece of code (method) at runtime.

257 questions
0
votes
1 answer

Is there a way to bind a variable number of queries?

I'm coding an app for managing shift work. The idea is pretty simple: the team is shared between groups. In those groups are specific shifts. I want to get something like that: Group 1 - shift11 - shift12 - shift13 Group 2 - shift21 - shift22 -…
0
votes
1 answer

iterating over container of objects from an inheritance hierarchy while hiding pointers

The issue I am having is the following: I have an inheritance hierarchy of objects, and I want to define a class that represents a collection of objects from this hierarchy that can have different dynamic types. I am wondering if there is a way to…
W. Verbeke
  • 355
  • 2
  • 12
0
votes
1 answer

How to display data which is of different width in single ListBox in silverlight?

I am developing window phone 7 application. I am new to the window phone 7 application. I am binding the data dynamically to the TextBlock inside the ListBox. I am using the following code to display the data in the ListBox.
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
0 answers

C++: Invoking virtual function has different behaviour for different instances

Really sorry about the title, if there is any appropriate one please do change it to that. I have written below sample code to understand virtual functions. class A { public: virtual int f() {cout << "1";}; }; class B : public A { …
pasha
  • 2,035
  • 20
  • 34
0
votes
1 answer

(C++); Dynamically decide type of a function (derived class)

I am new to C++ and I am stuck in my program. It is a program that mimics the board game "Battleship". We were given code to edit, and one of the things we were asked to do was to make the program prompt you for which kind of ship you wanted to lay…
Ricardo.B
  • 33
  • 3
0
votes
1 answer

How to bind components to specific tag in angular?

This is the layout of the angular-electron app which I am developing. in the dynamic region or tag I want to bind different component based on the click on the list items in the side-nav component. All this components are placed in MainComponent.…
Suroor Ahmmad
  • 1,110
  • 4
  • 23
  • 33
0
votes
1 answer

dynamic binding with generic type

i need to bind dynamic a parametic type (List) but i dont get it right... here is an overview of my classes: public abstract interface SettingsField extends Window then i have some classes which implements SettingsField: public class…
reox
  • 5,036
  • 11
  • 53
  • 98
0
votes
1 answer

Using Polymorphism to call a function depending on user input

I have an abstract class "Base" and derived classes such as Hexadecimal, Binary and so on... . User enters a string telling me what base he is currently using and enters the number. I need to use polymorphism (instead of control statements such as…
mhm
  • 313
  • 1
  • 5
  • 12
0
votes
1 answer

Static binding and dynamic binding in Java

At first I'm a beginner I have seen so much tutorials, read so much examples and tried to understand this topic even from the JLS, yet I still have some confusion or misunderstanding. Let me show you the problem I can't understand. Imagine we have…
0
votes
0 answers

How to get the statically binded class in Java?

Say class E extends B {} class B extends A {} We have, B v = new E(); process(v); We know it is true that, v.getClass() == E.class Is there a way to tell the static binding for v is exactly B programmatically? EDIT: The original idea was to…
0
votes
2 answers

C# Telerik Grid data binding not reloading

I want to bind data in telerik grid dynamically. Initially I used below code. protected void radGridItemList_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { var gridItemList = sender as RadGrid; var…
Lakshan
  • 15
  • 1
  • 5
0
votes
1 answer

Data Type and Dynamic Binding in java

I read a matrix from a file and all column have a different data type. I can't find a structure to hold and manipulate my data. Thank's for help. // I read a matrix from file and all column have a different type. int[] iT = new int[]…
0
votes
1 answer

how to get element type for array in swift

Firstly there is a base class be called BaseModel ,below is the code: class BaseModel : NSObject { var code:Int? var message:Any? public func setDictionaryToAttributes(dictionary_is dictionary:Dictionary?)->Bool …
0
votes
0 answers

AngularJS bind value after initialization

I have a dynamic HTML page. One element (textarea) is generated via php (third party library) and I can't set ng-model for it. Can I setup ng-model for textarea after initialization, maybe jQuery callback or something similar.
Avirtum
  • 438
  • 6
  • 14
0
votes
3 answers

Java dynamic binding: Why the compiler cannot distinguish overriden methods

i am trying to understand dynamic/static binding on a deeper lever and i can say after a lot of reading and searching i got really confused about something. Well, java uses dynamic binding for overriden methods and the reason for this is that the…
user4865748