RosettaCodeData/Task/Inheritance-Multiple/E/inheritance-multiple-3.e

4 lines
120 B
Plaintext

? def p := makeCameraPhone(p)
> [p.takesPictures(), p.makesCalls(), p.internalMemory()]
# value: [true, true, 33619968]