Explain the situation when a variable is assigned a method as a value. For example, when working with fragments, we write the following:
FragmentManager fm = getFragmentManager(); I do not quite understand how the fm variable of the FragmentManager type is assigned to the method. What keeps this variable, a reference to a method or some value further? Tried to do such a trick with any method of my class, it does not work.
returnin such a method (that is, a value), and not the method itself. - pavlofff