Page 1 of 1

[HD Pg 304, Sec. 9.1.3 - inheritance-and-access-modifiers]

Posted: Fri Jan 04, 2019 3:13 pm
by Username987654
Even though the balance field of Account is visible and inherited
in RetirementAccount, acct.balance will still not compile because
RetirementAccount class does not own SavingsAccount’s balance as explained in the previous chapter.
should be
Even though the balance field of Account is visible and inherited
in RetirementAccount, sa.balance will still not compile because
RetirementAccount class does not own SavingsAccount’s balance as explained in the previous chapter.
?

Re: [HD Pg 304, Sec. 9.1.3 - inheritance-and-access-modifiers]

Posted: Sat Jan 05, 2019 12:03 am
by admin
Correct. Added to errata.
thank you for your feedback!