Function extendsObject

Creates an object type that extends another object type