• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Brian Greeson
    Brian Greeson
    4,034 Points

    Why are the call to super and the initialization of properties not in the opposite order as in many other languages

    Posted May 11, 2020 5:06pm by Brian Greeson
    Brian Greeson
    4,034 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    0 Answers

  • Gene Bogdanovich
    Gene Bogdanovich
    14,618 Points

    Why do we use 'self' when referring to the property defined in the base class?

    Posted February 17, 2019 11:31am by Gene Bogdanovich
    Gene Bogdanovich
    14,618 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    2 Answers

  • Lucas Morales
    Lucas Morales
    986 Points

    I have no idea what is going on — this was really confusing and demotivating :(

    Posted August 29, 2018 6:06pm by Lucas Morales
    Lucas Morales
    986 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    2 Answers

  • Mohammed suliman
    Mohammed suliman
    1,824 Points

    why we can not access to self.life without creating super.init ?

    Posted July 12, 2018 8:01am by Mohammed suliman
    Mohammed suliman
    1,824 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    0 Answers

  • Cameron White
    PLUS
    Cameron White
    Courses Plus Student 3,056 Points

    Changing property with SubClass

    Posted May 26, 2018 12:52pm by Cameron White
    Cameron White
    Courses Plus Student 3,056 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • Johnny Nguyen
    Johnny Nguyen
    3,875 Points

    About SubClass

    Posted March 19, 2018 12:08pm by Johnny Nguyen
    Johnny Nguyen
    3,875 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • Johnny Nguyen
    Johnny Nguyen
    3,875 Points

    If in subclass, I don't have an initializer method, does it affect anything at all??

    Posted March 19, 2018 11:49am by Johnny Nguyen
    Johnny Nguyen
    3,875 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • Linus Karlsson
    Linus Karlsson
    7,402 Points

    The count for superEnemy.life displays 2 not 50

    Posted March 14, 2018 11:51am by Linus Karlsson
    Linus Karlsson
    7,402 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • Niilo Pirttijärvi
    PLUS
    Niilo Pirttijärvi
    Courses Plus Student 2,354 Points

    I don't understand why some things are done in the tutorial?

    Posted January 11, 2018 10:54am by Niilo Pirttijärvi
    Niilo Pirttijärvi
    Courses Plus Student 2,354 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • Patrick McLeod
    Patrick McLeod
    5,913 Points

    Using return vs. print

    Posted November 23, 2017 10:31pm by Patrick McLeod
    Patrick McLeod
    5,913 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • Aleksa Milovanovic
    Aleksa Milovanovic
    2,470 Points

    error: extra argument 'y' in call super.init(x: x, y: y)

    Posted November 22, 2017 4:31pm by Aleksa Milovanovic
    Aleksa Milovanovic
    2,470 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    0 Answers

  • Seth Roope
    Seth Roope
    6,471 Points

    Sub Class named "Super"?

    Posted April 21, 2017 3:03am by Seth Roope
    Seth Roope
    6,471 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

  • NIKOLA RUSEV
    NIKOLA RUSEV
    5,293 Points

    inheretence and init (override)

    Posted April 3, 2017 8:44am by NIKOLA RUSEV
    NIKOLA RUSEV
    5,293 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    0 Answers

  • NIKOLA RUSEV
    NIKOLA RUSEV
    5,293 Points

    subclass subsubclass

    Posted March 15, 2017 12:18pm by NIKOLA RUSEV
    NIKOLA RUSEV
    5,293 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    2 Answers

  • Zenek Barburka
    Zenek Barburka
    7,009 Points

    The most confusing tutorial so far. You need to do better!

    Posted January 17, 2017 10:03am by Zenek Barburka
    Zenek Barburka
    7,009 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    11 Answers

  • Monzer Selim
    PLUS
    Monzer Selim
    Courses Plus Student 3,849 Points

    My question here how can i inititate a new property in the subclass plus overriding the init method?

    Posted December 30, 2016 11:14pm by Monzer Selim
    Monzer Selim
    Courses Plus Student 3,849 Points
    • iOS
    • Object-Oriented Swift
    • Class Inheritance
    • Overriding Properties

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.