Multiple Inheritance of Classes
Manfred_Nowak
svv1999 at hotmail.com
Thu Aug 14 05:09:57 PDT 2008
superdan wrote:
> no idea why walt chose to disallow that.
It may cause some problems:
interface Customer
{
string ssn();
string name();
string uniqueName() { return name ~ "(ssn: " ~ ssn ~ ")"; }
}
interface SpecialCustomer
{
string ssn();
string name();
string uniqueName() { return name ~ "!!!!!(ssn: " ~ ssn ~ ")"; }
}
class D: Costumer, SpecialCostumer{ string ssn="", name="";}
1) What is the result of `(new D).uniqueName' ?
2) Is the locality of code controlable?
3) ...
-manfred
--
Maybe some knowledge of some types of disagreeing and their relation
can turn out to be useful:
http://blog.createdebate.com/2008/04/07/writing-strong-arguments/
More information about the Digitalmars-d
mailing list