inheritance










mrsekut
()
IDE

(?)
override


IDE使


defaultOOPmrsekut
mrsekut
使



class P {
constructor() {..}
f() {..}
h() {..}
}
class C extends P {
constructor() {
..
super(..)
}
g() {..}
h() {..}
}
C.g() Cg()
C.f() CPP f()
h() (override) C h()
overraidemethodsuper()
constructor()
constructor()1method
instantiatepropertyconstructorsuper使





OOP
(basic type) (derived type)
property, method
method
DI使
#??
classDI使
trait使super class使
behaves-like-ais-a
sub classsuper class


prototypeOOP
mrsekut






『オブジェクト指向設計実践ガイド』 p.167~
Object super
superstrirngobject使
supererror
使






使
hsmrsekut



(LSP)
(OOP)
MonoidFunctorMonad


mrsekut