Create a class Time which stores the time in hours and minutes. when the object is created, the data members should be initialized with zero. Take the input through the constructors. Include a copy Constructor and destructor. WAP to call all the constructor and destructors.
Define a class "Deposit" with following member private : principle, time_period, rate of interest, amountpublic : input(), display()Default Constructor - to initialize all members by zeroParametrized Constructor - to initialize with parameterCopy Constructor - to copy and destructorWAP to calculate amount
WAP to demonstrate the order of call of constructor and destructor . Create objects in different scopes.