Solved

Mean of This Assignment

Posted on 2006-11-17
2
186 Views
Last Modified: 2010-04-01
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
Comment
Question by:shirin
2 Comments
 
LVL 9

Accepted Solution

by:
DrAske earned 125 total points
ID: 17971106
>>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
 

Author Comment

by:shirin
ID: 17971215
you are right,
WirelessPhy *wifp = (wirelessPhy *) tifp;

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now