Jump to content

Inheritance/Multiple: Difference between revisions

m
Fixed typos in previous edit.
(Expanded D entry to cover the multiple ways to do multiple inheritance.)
m (Fixed typos in previous edit.)
Line 149:
}</lang>
 
In addition, D's alias this feature allows one to create a type that, while it does not technically derive from two different classes, behaves as if it wasdid.
 
<lang d>class A {
Line 214:
}</lang>
 
Using D's [[Compile-time calculation|CTFE]] and [[reflection]] capabilities, string mixins can copy the interface of other types , and thus be used for proxies and mocks.
 
=={{header|Delphi}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.