This kind of learning is learning by examples. A general instruction or rule is introduced by virtue of observation of situations.