Top "Polymorphism" questions

In computer science, polymorphism is a programming language feature that allows values of different data types to be handled in a uniform manner.

Jackson custom deserializer for one field with polymorphic types

Update: I tried to debug in jackson source code and find out that in the method deserialize(JsonParser jp, DeserializationContext …

java json polymorphism jackson deserialization
Possible to have "polymorphic has_one" relationship in rails?

I'd like to do something like this: Category -------- - id - name Tag -------- - id - tag Campaign …

ruby-on-rails activerecord polymorphism
Static Binding and Dynamic Binding

I am really confused about dynamic binding and static binding. I have read that determining the type of an object …

java oop polymorphism dynamic-binding static-binding
Why cast after an instanceOf?

In the example below (from my coursepack), we want to give to the Square instance c1 the reference of some …

java polymorphism instanceof
Overriding a Base's Overloaded Function in C++

Possible Duplicate: C++ overload resolution I ran into a problem where after my class overrode a function of its base …

c++ inheritance polymorphism overriding
Correct Implementation of Virtual Functions in PHP?

at my working place (php only) we have a base class for database abstraction. When you want to add a …

php oop polymorphism virtual-functions
Polymorphic model binding

This question has been asked before in earlier versions of MVC. There is also this blog entry about a way …

asp.net-mvc asp.net-mvc-3 polymorphism model-binding
Hiding inherited members

I'm looking for some way to effectively hide inherited members. I have a library of classes which inherit from common …

c# wpf silverlight polymorphism dependency-properties
Try to describe polymorphism as easy as you can

How can polymorphism be described in an easy-to-understand way? We can find a lot of information about the subject on …

language-agnostic oop polymorphism
Does delete work with pointers to base class?

Do you have to pass delete the same pointer that was returned by new, or can you pass it a …

c++ boost polymorphism