static void Main(string[] args) { FixedDeposit fixedAccount = new FixedDeposit("account1", 1000, 2, Festival.HOLI); Console.WriteLine("name " + fixedAccount.Name); Console.WriteLine("Principle " + fixedAccount.Principle); Console.WriteLine("Year " + fixedAccount.year); Console.WriteLine("festival " + fixedAccount.FEstival); Console.WriteLine("simple interest " + fixedAccount.CalculateSimpleInterest()); }
static void Main(string[] args) { FixedDeposit fixedDeposit1 = new FixedDeposit("Dhruv", 1000, 2, Festivals.HOLI); Console.WriteLine("Name of Account = " + fixedDeposit1.Name); Console.WriteLine("Principle amount = " + fixedDeposit1.Principle); Console.WriteLine("Year = " + fixedDeposit1.Year); Console.WriteLine("Festival = " + fixedDeposit1.Festival); Console.WriteLine("Simple Interest = " + fixedDeposit1.CalculateSimpleInterest()); }