instantiates_class(Instance, Class) instantiates_class(Instance, Class, Scope)
Enumerates, by backtracking, all pairs of objects such that the first one instantiates the second. The relation scope is represented by the atoms public
, protected
, and private
.
instantiates_class(?object_identifier, ?object_identifier) instantiates_class(?object_identifier, ?object_identifier, ?scope)
type_error(object_identifier, Instance)
type_error(object_identifier, Class)
type_error(scope, Scope)
| ?- instantiates_class(water_jug, state_space). | ?- instantiates_class(Space, state_space, public).