在以下范例中,资料型别从衍生类别转换为其基底类别,但转换后两变数所指向的物件并未变更。
In the following example, the data type is converted from the derived class to its base class, but the object that both variables now point to is unchanged.
在以下范例中,资料型别从衍生类别转换为其基底类别,但转换后两变数所指向的物件并未变更。
In the following example, the data type is converted from the derived class to its base class, but the object that both variables now point to is unchanged.
应用推荐