Hi,
i am starting to play around classes and oop and i have a very basic question that i cannot grasp. so the situation is:
I have a class X and several functions operating on it (are a part of that class). Now, as far as i understood, i can pass a function to a class by saying X::func() but now this function is a part of my class X and if i need to pass it down to another class i need to make this other class a part of my X class, is that right ? If yes then how would one share a function between two or more different unrelated classes ?
thnx
baxy
PS.
did i completely misunderstand the whole thing ??