static void Main(string[] args) { Revenue objRevenue = new Revenue(); Expenditure objExpenditure = new Expenditure(); objExpenditure.AcceptDetails(); objExpenditure.DisplayDetails(); objRevenue.AcceptDetails(); objRevenue.DisplayDetails(); }
static void Main(string[] args) { Expenditure objExpend = new Expenditure(); Revenue objReve = new Revenue(); objExpend.AcceptDetails(); objExpend.DispalyDetails(); objReve.AcceptDetails(); objReve.AcceptDetails(); }
//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(); }