Logtalk built-in predicate: extends_object/2-3

contents > reference manual > built-in predicates

## `extends_object/2-3`

#### Description

>     extends_object(Prototype, Parent)

>     extends_object(Prototype, Parent, Scope)

> Enumerates, by backtracking, all pairs of objects such that the first one extends the second.

#### Template and modes

>     extends_object(?object_identifier, ?object_identifier)

>     extends_object(?object_identifier, ?object_identifier, ?scope)

#### Errors

> Prototype is neither a variable nor a valid object identifier:
>   `type_error(object_identifier, Prototype)`
> Parent is neither a variable nor a valid object identifier:
>   `type_error(object_identifier, Parent)`
> Scope is neither a variable nor a valid entity scope:
>   `type_error(scope, Scope)`

#### Examples

>     | ?- extends_object(Object, state_space).

>     | ?- extends_object(Object, list, public).

previous | glossary | next
Copyright © Paulo Moura — Logtalk.org