Open GoogleCodeExporter opened 9 years ago
This may need a little more analysis, but certainly, the ability to change in a
subclass whether a given attribute appears in the constructor may well be
needed.
Original comment by TimothyCLethbridge
on 12 May 2014 at 5:54
The example of father and people (which should be Person) is terrible
modelling, so don't use this as the test case. Instead use something like this:
class Vehicle {
modelName;
Integer numWheels;
Boolean hasWheels;
Boolean isAmphibious;
}
class WheeledVehicle {
isA Vehicle;
hasWheels = true;
[numWheels > 0]
}
class Car {
isA WheeledVehicle;
numWheels = 4;
isAmphibious = false;
}
Original comment by TimothyCLethbridge
on 5 Aug 2014 at 6:50
Original issue reported on code.google.com by
ckchan.cs
on 8 May 2014 at 1:17