extend()
Extend obj_1
to obj_2
. All of attributes and functions of obj_2
will be inherited to obj_1
extend(obj_1, obj_2)
obj_1
(object) — An objectobj_2
(object) — An object
boolean
— Always returns true
a = some_object()
b = another_object()
extend(a, b)