Write a program in C++ to convert a decimal number into an octal without using an array using Single inheritance in object oriented programming(OOP) .

Output
Enter the octal Number : 10
Your Entered Value is : 10
Octal Value of your Input is : 12
Write a program in C++ to convert a decimal number into an octal without using an array using Single inheritance in object oriented programming(OOP) .
Output
Enter the octal Number : 10
Your Entered Value is : 10
Octal Value of your Input is : 12