🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Daniel Szulc
    Daniel Szulc
    3,220 Points

    expected declaration error

    Posted October 31, 2015 10:50pm by Daniel Szulc
    Daniel Szulc
    3,220 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    2 Answers

  • Javid Beykzadeh
    Javid Beykzadeh
    5,863 Points

    Expected Declaration

    Posted October 22, 2015 1:41am by Javid Beykzadeh
    Javid Beykzadeh
    5,863 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    1 Answer

  • sergei zh
    sergei zh
    2,687 Points

    crash of playground

    Posted October 4, 2015 7:51pm by sergei zh
    sergei zh
    2,687 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    4 Answers

  • boris said
    boris said
    3,607 Points

    Whenever I try to run my program it crashes.

    Posted September 28, 2015 1:18pm by boris said
    boris said
    3,607 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    10 Answers

  • Kamran Ismayilov
    Kamran Ismayilov
    5,753 Points

    Overriding

    Posted September 27, 2015 2:25pm by Kamran Ismayilov
    Kamran Ismayilov
    5,753 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    6 Answers

  • boris said
    boris said
    3,607 Points

    Can somebody please help me my all my program is doing is just saying times: then rapidly counting up.

    Posted September 25, 2015 1:13pm by boris said
    boris said
    3,607 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    1 Answer

  • Thomas France
    Thomas France
    4,139 Points

    Why do we need to change the discountedPrice function (to returning a Double)? How if we not use a "return" in a "func"

    Posted July 14, 2015 12:16am by Thomas France
    Thomas France
    4,139 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    1 Answer

  • Hariidaran Tamilmaran
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hariidaran Tamilmaran
    iOS Development Techdegree Student 19,305 Points

    Concerning about D.R.Y.

    Posted July 6, 2015 9:10pm by Hariidaran Tamilmaran
    .a{fill-rule:evenodd;}techdegree
    Hariidaran Tamilmaran
    iOS Development Techdegree Student 19,305 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    2 Answers

  • Konstantin Bashenko
    Konstantin Bashenko
    1,283 Points

    My Xcode 7 beta crashes when I'm trying to override the Product class.

    Posted June 16, 2015 2:30pm by Konstantin Bashenko
    Konstantin Bashenko
    1,283 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    5 Answers

  • JD Maldonado
    PLUS
    JD Maldonado
    Courses Plus Student 358 Points

    Not sure exactly what the second challenge in overriding methods is asking?

    Posted April 27, 2015 9:52pm by JD Maldonado
    JD Maldonado
    Courses Plus Student 358 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    3 Answers

  • Luke Rayner
    Luke Rayner
    1,757 Points

    Why do we need multiple Functions which state the same thing cant you just make that a global function?

    Posted April 26, 2015 6:27pm by Luke Rayner
    Luke Rayner
    1,757 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    0 Answers

  • Jayven Nhan
    PLUS
    Jayven Nhan
    Courses Plus Student 1,956 Points

    why is there an underscore? what is it for exactly and where else do we see it in code?

    Posted March 1, 2015 2:44pm by Jayven Nhan
    Jayven Nhan
    Courses Plus Student 1,956 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    1 Answer

  • tytyty
    tytyty
    4,974 Points

    Optional parameter underscore? An underscore means that this parameter does not have an external parameter.

    Posted February 8, 2015 1:00am by tytyty
    tytyty
    4,974 Points
    • iOS
    • Object-Oriented Swift
    • Inheritance
    • Overriding Methods

    2 Answers

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
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.