Single inheritance C++ program to find the perfect numbers within a given range

Write a C++ program to find the perfect numbers within a given range using single inheritance.