Are you saying nesting functions is a bad idea?
Say I had to do some calculations for a person.
I’m not on my laptop so am half writing this code…
int[] getPerson(){
new Array called PersonArray size[4];
PersonArray[0] = getHeight();
PersonArray[1] = figureBMI();
PersonArray[2] = getAgeOfDeath();
PersonArray[3] = morgageCost();
return PersonArray;
}
What other way could you grab a load of information for ‘somebody’ when you create them without doing a bunch of functions in a row? Just curious…