In my application I have 3 classes.
1. class A
2. class B
3. class C
Application controller (having main function) has the object of class A, class A has object of class B and class B has objects of class C.
Application Flow:
1. Application reads some inputs.
2. Application does some calculations.
3. Stores generated data into excel file.
My question is:
Functionality of setting of data members of the class should be in main function or in their respective parent classes?
Means: function which sets data members of class C , should reside in Class B or it should be in class "Applicatio n controller"?
1. class A
2. class B
3. class C
Application controller (having main function) has the object of class A, class A has object of class B and class B has objects of class C.
Application Flow:
1. Application reads some inputs.
2. Application does some calculations.
3. Stores generated data into excel file.
My question is:
Functionality of setting of data members of the class should be in main function or in their respective parent classes?
Means: function which sets data members of class C , should reside in Class B or it should be in class "Applicatio n controller"?
Comment