Write a package called Company. Under this package create one other package called salary.
This salary package creates two classes “income” and “expenditure”. Income class contain Basic, DA and Hra…and “expenditure” contain food, cloth and home exp.
Create a class “Budget” in package company which uses above two classes and calculate savings of family..
My problem is i have used constructor in both the classes “Income” and “Expenditure”..
but there are some problem in Budget class while importing these two classes..
can you explain me how can I write the “Budget” class ??????? Thank you/!!!
This is not 100% complete or even a good way to do it, but it might get you to think.