C++ provides the option of having a method support (or don't support)
polymorphism. Java doesn't allow this -- all methods are "virtual" (C++ term).
Men Gumani wrote:A friend of mine told me that C++'s dynamic cast can do this by changing the pointers in the v table , is that true?
Yes, this is true... but it is silly to do. Basically, your friend is saying to modify the jump tables, to trick the system into thinking which is the latest version of a method. Java doesn't support pointers, so this is not possible.
Henry