# Understanding the class lifecycle

**URL:** <https://forums.kodeco.com/t/understanding-the-class-lifecycle/13984>\
**Category:** Swift Apprentice\
**Created:** [April 26, 2016, 2:54am UTC](https://forums.kodeco.com/t/understanding-the-class-lifecycle/13984 "2016-04-26T02:54:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aeberbach](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aeberbach/32/81494_2.png) [@aeberbach](https://forums.kodeco.com/u/aeberbach)\
**Post date:** [April 26, 2016, 2:54am UTC](https://forums.kodeco.com/t/understanding-the-class-lifecycle/13984/1 "2016-04-26T02:54:48Z")

</div>

It seems a bit confusing on page 194 to reuse the same values in creating the Person object. It might be better to create a Person with a different name for assignment to “john” so that it is more obvious that the Person(firstName: “Johnny”, lastName: “Appleseed”) has a reference count of 0 because “john” now refers to a different Person.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [August 16, 2017, 1:46pm UTC](https://forums.kodeco.com/t/understanding-the-class-lifecycle/13984/2 "2017-08-16T13:46:38Z")

</div>

Thank you for the heads up - much appreciated! We will definitely take care of the whole thing when we update the whole book for Swift 4 and Xcode 9 after all for sure and for good indeed.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [August 16, 2017, 1:47pm UTC](https://forums.kodeco.com/t/understanding-the-class-lifecycle/13984/3 "2017-08-16T13:47:50Z")

</div>

Closed on August 16, 2017, 1:47pm UTC


