Downcasting
id:
downcasting-316-5228268
title:
Downcasting
text:
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 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
brand slug:
wiki
category slug:
encyclopedia
description:
Act of casting a reference of a base class to one of its derived classes
original url:
https://en.wikipedia.org/wiki/Downcasting
date created:
date modified:
2024-02-28T16:05:47Z
main entity:
{"identifier":"Q4371845","url":"https://www.wikidata.org/entity/Q4371845"}
image:
fields total:
13
integrity:
14