Jump to content

Abstract type: Difference between revisions

Line 114:
 
tag AbstractStack some-object ; always fails
*** Error: class AbstractStack validator error for some-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. In this case it wants two methods, !enstack and !destack:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.