mdh
March 9th, 2006, 01:16 AM
Hello everyone,
In the C++ books that I refer to, explanations for type casting is often vauge and confusing. So, I thought I might ask the gurus for a clear and succinct explanation. Here are my questions
* What is the difference between dynamic_cast and static_cast
* When do you prefer one of these to the other
* Why should these cast operators be prefered over C-style casts
In the C++ books that I refer to, explanations for type casting is often vauge and confusing. So, I thought I might ask the gurus for a clear and succinct explanation. Here are my questions
* What is the difference between dynamic_cast and static_cast
* When do you prefer one of these to the other
* Why should these cast operators be prefered over C-style casts