Abstract type: Difference between revisions

m
→‎{{header|Tcl}}: correct requirement
m (copy edit - wiki link to wikipedia)
m (→‎{{header|Tcl}}: correct requirement)
Line 770:
 
=={{header|Tcl}}==
{{works with|Tcl|8.6}} or {{libheader|TclOO}}
 
While in general Tcl does not use abstract classes at all (and has no need at all for interfaces due to supporting multiple inheritance and mixins), an equivalent effect can be had by concealing the construction methods on the class instance; instances are only created by subclassing the class first (or by mixing it in). In this example, the methods are also error-returning stubs...
Anonymous user