Young children cannot be expected to behave with maturity and generosity.
hope this helps! :)
The word <em>whom </em>in this sentence is used as 2. object of a preposition.
Since it can be found after a preposition <em>for, </em>it is object of a preposition.