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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

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

Post 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.
?

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Correct. Added to errata.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests