how to change attribute in descendant?
Jari-Matti Mäkelä
jmjmak at utu.fi.invalid
Thu Jan 18 07:55:18 PST 2007
Pragma wrote:
> This example also demonstrates D's property syntax, which is a nice
> concession for situations like this. Try using this snippet with the
> "void main()" snippet above. :)
Eric, do you happen to know, if it's possible to do the opposite - i.e.
make public methods private by using private/protected inheritance? The
spec says (http://www.digitalmars.com/d/class.html):
InterfaceClass:
Identifier
Protection Identifier
Protection:
private
package
public
export
But what does it mean? I've asked this a few times before (nobody
answered). The compiler just bypasses the protection attributes. I think
other than public inheritance is anyway bad in D, especially when the
protection is used with interfaces.
More information about the Digitalmars-d-learn
mailing list