C++ Program using Virtual Base Class to convert a decimal number into binary

Write a program in C++ to convert a decimal number into binary without using an array and using the Virtual base Class in Object Oriented Programming(OOP).

Output

enter decimal number : 8

binary number = 1000