Create a class Account which has method interest() to calculate simple interest and override this method in derive class SavingAccount, which calculate compound interest.
Create a class Govt which has method to calculate the Tax(10 %). Override the method tax() in derived classNewGovt and display the tax.
Create a class Student which store name and roll no. of 10 student. Create a method search which can take any no of argument, and display the name according to the roll no. which is passed in argument.