[HD Pg 304, Sec. 9.1.3 - inheritance-and-access-modifiers]
Posted: Fri Jan 04, 2019 3:13 pm
should beEven 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.
?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.