Example #1
0
        static void Main(string[] args)
        {
            PrePaidInvoice p = new PrePaidInvoice();

            p.GetDate();
            p.DoPrint();

            Console.ReadKey();
        }
Example #2
0
        private static void UsingBaseExample()
        {
            PrePaidInvoice p = new PrePaidInvoice();

            p.GetDate();

            /* When the DoPrint method is called on an instance of the PrePaidInvoice class, it first
             * makes a call of the DoPrint method in the parent object. */
            p.DoPrint();
        }