You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a behavioural design pattern.
In one sentence we can say sometimes inheritance will not solve our problem.
Then we can use composition to overcome this problem.