Hey, I was wondering if someone could give me an answer to this question written
ID: 663819 • Letter: H
Question
Hey, I was wondering if someone could give me an answer to this question written in C++
All that's needed is a header file (.h file)
Write a function named complexSum that accepts a reference to a
std::vector<Number<T>*>, where T is a template type. This function will use dynamic cast to check each
element to see if it is a ComplexNumber and will return the sum of the complex
components of all ComplexNumbers in the vector. The sum will be a template of
the ComplexNumber type.