healthy ways of programming

lets say we have a class and we have 2 funcs in it. one of the funcs calling another both public.
class ->func1 func1 calls func2
|------->func2


and we have two classes each function is in one class. call func calls the other func from another class.
class1->func1
class2->func2 func1 calls func2 from class2

which one is healthier. maybe both okay??
Last edited on
What do you mean by "healthier"? Which one is better? There's no way of telling from such an abstract example. A function should be a member of a class or not depending on the data it uses, not on the functions it calls.
Topic archived. No new replies allowed.