One of two easy options comes to mind:
Make
Behavior3
inherit fromBehavior2
. I would only recommend this approach if you can establish a clear "IS A" relationship or this design approach could really give you problems later if things change with howBehavior2
works in relation toBehavior3
.Move
Function2()
into a helper class thatBehavior2
andBehavior3
can use indepedently.