TDPL: Inheritance

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Aug 8 14:38:43 PDT 2010


Page 191:

unittest {
    Friend f = new Friend;
    Contact c = f;              // substitute a Friend for a Contact
    auto color = c.bgColor();   // call a contact method
}

Fix to: "call a Friend method"


More information about the Digitalmars-d mailing list