# Error in p. 339? (5th Edition)

**URL:** <https://forums.kodeco.com/t/error-in-p-339-5th-edition/110598>\
**Category:** Swift Apprentice\
**Created:** [May 29, 2020, 9:42pm UTC](https://forums.kodeco.com/t/error-in-p-339-5th-edition/110598 "2020-05-29T21:42:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ertugrul](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ertugrul/32/81494_2.png) [@ertugrul](https://forums.kodeco.com/u/ertugrul)\
**Post date:** [May 29, 2020, 9:42pm UTC](https://forums.kodeco.com/t/error-in-p-339-5th-edition/110598/1 "2020-05-29T21:42:41Z")

</div>

> “For example, you saw that the Student class can add additional properties and methods to handle a student’s grades. These properties and methods are available to any Person class instances but fully available to Student subclasses.” (5th Edition, page 339)

Should this be “These properties and methods are **NOT** available to any Person class instances …” ?

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [July 1, 2020, 3:43am UTC](https://forums.kodeco.com/t/error-in-p-339-5th-edition/110598/2 "2020-07-01T03:43:37Z")

</div>

@ertugrul Thanks very much for your question!

They are in fact fully available to the subclass. A subclass is a child of the parent class, and as in real life, you typically “inherit” the qualities from your parents (e.g. hair color, skin color), but you also have unique qualities of your own (e.g. personality). So by default, the properties and function of a parent class are also available to instances of its subclass 🙂

I hope this helps!

All the best.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [November 12, 2020, 1:42pm UTC](https://forums.kodeco.com/t/error-in-p-339-5th-edition/110598/3 "2020-11-12T13:42:42Z")

</div>

Closed on November 12, 2020, 1:42pm UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
