Problem:
Question 1: Describe two ways to get the time when using position sensors to extract velocity information? Explain thoroughly.
Question 2: Create a "generic" base class named Bird with a member function named OutpuName that outputs "a bird". Then derived class Swan with the same member function from it but output "a swan". Then declares a pointer to a generic Bird,and sets it pointing to a newly-created Swan. After that, use the pointer to output "a swan", not "a bird". Write the code step by step and explain it.