2 ms·
Technically, no, dynamic programming just means solving smaller problems as part of a larger problem. eg. dykstras algorithm for a shortest path, or a merge so
by fleitz 16y ago
Technically, no, dynamic programming just means solving smaller problems as part of a larger problem.
eg. dykstras algorithm for a shortest path, or a merge sort.
I think you're thinking of dynamic typing, which .NET and F# have, kinda, (via dynamic method invocation). In F# to invoke a method dynamically use the ? operator.
x.Bar() # static call
x?Bar() # dynamic call
in C# to do a dynamic call cast the object to Dynamic.
((Dynamic)x).Bar(); // dynamic call
((IFoo)x).Bar(); // static call
Also, you can do multiple inheritance in a static language, C++ as an example.