• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Mean of This Assignment

Hi experts,
What is the mean of below statement:
Wireless *wifp = (wirelessPhy *) tifp;
I havn t seen this assignment.
Thanks in advance for your time.

Regards
Shirin

0
shirin
Asked:
shirin
1 Solution
 
DrAskeCommented:
>>Wireless *wifp = (wirelessPhy *) tifp;
I think should be like this
WirelessPhy *wifp = (wirelessPhy *) tifp;
This is TypeCasting, this statement let the System treats the data of type *tifp* as a WirlessPhy type.
BTW, if this is a safe typecast then (I think) WirlessPhy is a subclass of *tifp* type.

regards,Ahmad;
0
 
shirinAuthor Commented:
you are right,
WirelessPhy *wifp = (wirelessPhy *) tifp;

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now