翻訳と辞書
Words near each other
・ Down-the-hole drill
・ Down-The-Line
・ Down-With-Imperialism Union
・ Downard
・ Downary
・ Downary-Plac
・ Downbeat
・ Downbelow
・ Downbelow (fictional planet)
・ Downbelow Station
・ Downblouse
・ Downbound / Upbound
・ Downbound Train
・ Downburst
・ Downburst (album)
Downcasting
・ Downchild Blues Band
・ Downcity Providence
・ Downcounty Consortium
・ Downcutting
・ Downcycling
・ Downderry
・ Downdraft table
・ Downdrift
・ Downe
・ Downe Bank
・ Downe Communications
・ Downe House
・ Downe House School
・ Downe House, Richmond Hill


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Downcasting : ウィキペディア英語版
Downcasting

In class-based programming, downcasting or type refinement is the act of casting a reference of a base class to one of its derived classes.
In many programming languages, it is possible to check through type introspection to determine whether the type of the referenced object is indeed the one being cast to or a derived type of it, and thus issue an error if it is not the case.
In other words, when a variable of the base class (parent class) has a value of the derived class (child class), downcasting is possible.
==Example==
In Java:

public class Fruit


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Downcasting」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.