コード例 #1
0
        static void Main(string[] args)
        {
            SavingsAccount objSavingsAccount = new SavingsAccount();

            if (objSavingsAccount.AcceptDetails())
            {
                objSavingsAccount.Display();
            }
            else
            {
                return;
            }
        }
コード例 #2
0
ファイル: SavingsTest.cs プロジェクト: vqthang3791/SEM_2
        /// <summary>
        /// The entry point for the application.
        /// </summary>
        /// <param name="args">A list of command line arguments</param>
        static void Main(string[] args)
        {
            // Creating an object of the SavingsAccount class.
            SavingsAccount objSavingsAccount = new SavingsAccount();

            if (objSavingsAccount.AcceptDetails())
            {
                //Invoking the Display method of the SavingsAccount class.
                objSavingsAccount.Display();
            }
            else
            {
                return;
            }
        }