[progress Communities] [progress Openedge Abl] Forum Post: Re: Cast Vs Dynamic-cast

Status
Not open for further replies.
L

Laura Stern

Guest
Your statement "one can cast a Progress.Lang.Object to anything " is not correct. You can cast anything to a Progress.Lang.Object, but not the other way around. Think of it this way. Something defined as a P.L.O can be anything. Let's say you have a class B defined as a P.L.O. You're implying that you should be able to cast it to a C. Of course you should not be able to do that. And you can't.

Continue reading...
 
Status
Not open for further replies.
Top