Anonymous user
Abstract type: Difference between revisions
→{{header|Genyris}}
Line 113:
def !valid?(object) nil
tag Stack some-object ; always fails
*** Error: class Stack validator error for object ...</lang>
However this is not much use if we want to use an abstract class to define an interface. Here is a quasi-abstract class which can be used to tag objects if they conform to the class's membership expectations:
|