Virtual base class C++ program sum of an A.P. series

Write a C++ program to find out the sum of an A.P. series by using the virtual base class in object oriented programming.

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.