Downcast

{ In class-based programming, downcasting, or type refinement, is the act of casting a base or parent class reference, to a more restricted derived class reference. This is only allowable if the object is already an instance of the derived class, and so this conversion is inherently fallible. In contrast upcasting, explicitly treating an object as if it's an instance of one of its superclasses, is always possible. In many environments, type introspection can be used to obtain the type of an object instance at runtime, and then use this result to explicitly evaluate its type compatibility with another type. The possible results of comparing polymorphic types—besides them being equivalent (identical), or unrelated (incompatible)—include two additional cases: namely, where the first type is derived from the second, and then the same thing but swapped the other way around (see: Subtyping § Subsumption). With this information, a program can test, before performing an operation such as storing an object into a typed variable, whether that operation is type safe, or whether it would result in an error. If the type of the runtime instance is derived from (a child of) the type of the target variable (therefore, the parent), downcasting is possible. Some languages, such as OCaml, disallow downcasting. {

Balance - 2024-03-30 00:00:00

Fleeting - 2023-01-01 00:00:00

Omniscient - 2022-03-19 00:00:00

Time Clock - 2021-03-02 00:00:00

Take a Look - 2019-09-27 00:00:00

Similar Artists

Following The Signs

Bong Kong

GMR Project

The Void Effect

Indikon Lead

Mindscape Laboratory

Edifice La

A Dead Current

Upon Us All

Before the Foundation

Sleep Inertia

NULL

Vernon of Persia

Revanchist

Shallows

Ad Astra TX

Beyond Our Suffering

Fault

Against the Inspiration

PRODICAL