Introduction - If you have any usage issues, please Google them yourself
The use of virtual function means, in accordance with three kinds of different methods of calculation to find Fibonacci series, the first n items (specific items of value) and the output. Specifically, through the base class baseCla its derived classes fib1Cla, fib2Cla and fib3Cla described in the following virtual function with a " virtual double fib (int n) " , to achieve the first n order to Fibonacci sequence item value and return 3 different solutions are given. For example, can be designed and has been used in section 4 and Chapter 5 of the exercise achieved by solving method: simple variable " data translation" method, using an array implementation of law and the implementation method to use recursive functions.