extends_object(Prototype, Parent) extends_object(Prototype, Parent, Scope)
Enumerates, by backtracking, all pairs of objects such that the first one extends the second. The relation scope is represented by the atoms public
, protected
, and private
.
extends_object(?object_identifier, ?object_identifier) extends_object(?object_identifier, ?object_identifier, ?scope)
type_error(object_identifier, Prototype)
type_error(object_identifier, Parent)
type_error(scope, Scope)
| ?- extends_object(Object, state_space). | ?- extends_object(Object, list, public).