Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Revenue     objRevenue     = new Revenue();
            Expenditure objExpenditure = new Expenditure();

            objExpenditure.AcceptDetails();
            objExpenditure.DisplayDetails();
            objRevenue.AcceptDetails();
            objRevenue.DisplayDetails();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Expenditure objExpend = new Expenditure();
            Revenue     objReve   = new Revenue();

            objExpend.AcceptDetails();
            objExpend.DispalyDetails();
            objReve.AcceptDetails();
            objReve.AcceptDetails();
        }
Ejemplo n.º 3
0
        //the entry point for the application
        static void Main(string[] args)
        {
            //creating an object of the revenue class
            Revenue obj = new Revenue();
            //creating an object of the expediture class
            Expenditure objEx = new Expenditure();


            //invoking the acceptDetails is method of the expenditure class
            //to accept the details of expenditure
            objEx.AcceptDetails();

            obj.AcceptDetails();
            obj.DisplayDetails();
        }