| ||Specialization, Extension, and Inheritance - slide 24 : 40|
Inheritance and Constructors
Constructors are not inherited
- Each class in a class hierarchy should have its own constructor(s)
- The constructor of class C cooperates with constructors in superclasses of C to initialize a new instance of C
- A constructor in a subclass will always, implicitly or explicitly, refer to a constructor in its superclass
Constructors in class BankAccount.
Constructors in class CheckAccount.
Constructors in class SavingsAccount.
Constructors in class LotteryAccount.