Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
23
Task/Inheritance-Multiple/E/inheritance-multiple-2.e
Normal file
23
Task/Inheritance-Multiple/E/inheritance-multiple-2.e
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
def makeCamera(self) {
|
||||
return def camera extends minherit(self, []) {
|
||||
to takesPictures() { return true }
|
||||
}
|
||||
}
|
||||
|
||||
def makeMobilePhone(self) {
|
||||
return def mobilePhone extends minherit(self, []) {
|
||||
to makesCalls() { return true }
|
||||
to internalMemory() { return 64*1024 }
|
||||
}
|
||||
}
|
||||
|
||||
def makeCameraPhone(self) {
|
||||
return def cameraPhone extends minherit(self, [
|
||||
makeCamera(self),
|
||||
makeMobilePhone(self),
|
||||
]) {
|
||||
to internalMemory() {
|
||||
return super.internalMemory() + 32 * 1024**2
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue