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

New No-Code Track! 🚀 New videos dropping every week—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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Michael Santos
    Michael Santos
    704 Points

    Why not use GetLocationAt for HasScored property instead?

    Posted October 26, 2020 2:43pm by Michael Santos
    Michael Santos
    704 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    0 Answers

  • chazber
    chazber
    4,873 Points

    Is MapLocation Location property an instantiated object?

    Posted August 9, 2019 8:53pm by chazber
    chazber
    4,873 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • Karol Pisula
    Karol Pisula
    2,578 Points

    IS this get necasarry couldn't I just use return to return Health ?

    Posted August 2, 2019 9:14pm by Karol Pisula
    Karol Pisula
    2,578 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    0 Answers

  • Brandon Mendez
    Brandon Mendez
    4,177 Points

    Why am I getting error CS1519?

    Posted June 17, 2019 3:13pm by Brandon Mendez
    Brandon Mendez
    4,177 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • Christian Higgins
    Christian Higgins
    15,758 Points

    General frustration about C# not clicking in my brain

    Posted April 7, 2019 3:31pm by Christian Higgins
    Christian Higgins
    15,758 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • <noob />
    <noob />
    17,063 Points

    Questions about when to use computed properties and expression-bodied members

    Posted April 4, 2019 9:24pm by <noob />
    <noob />
    17,063 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    2 Answers

  • Marcel Konjata
    Marcel Konjata
    3,245 Points

    Alternate solution to declare if invader scored?

    Posted December 22, 2018 12:21pm by Marcel Konjata
    Marcel Konjata
    3,245 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    0 Answers

  • Seth Pabst
    Seth Pabst
    10,285 Points

    Workspace is acting up

    Posted February 12, 2018 7:52am by Seth Pabst
    Seth Pabst
    10,285 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • Gareth Welton
    Gareth Welton
    2,292 Points

    Is this an acceptable code choice here?

    Posted November 21, 2017 12:51pm by Gareth Welton
    Gareth Welton
    2,292 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • tung nguyen
    PLUS
    tung nguyen
    Courses Plus Student 1,666 Points

    what is the different between those funtion?

    Posted September 21, 2017 9:35am by tung nguyen
    tung nguyen
    Courses Plus Student 1,666 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • Yu-Yang Hsiao
    Yu-Yang Hsiao
    6,295 Points

    I don't quite understand the last code Jeremy wrote

    Posted August 11, 2017 6:39pm by Yu-Yang Hsiao
    Yu-Yang Hsiao
    6,295 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    2 Answers

  • Kimmo Ojala
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Kimmo Ojala
    Python Web Development Techdegree Student 8,257 Points

    Why does if-clause in property body { return _pathStep >= _path.Length; } need another property?

    Posted July 22, 2017 2:08pm by Kimmo Ojala
    .a{fill-rule:evenodd;}techdegree
    Kimmo Ojala
    Python Web Development Techdegree Student 8,257 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    2 Answers

  • Thanitsak Leuangsupornpong
    Thanitsak Leuangsupornpong
    7,490 Points

    Compilation Fail in DecreaseHealth Method.

    Posted March 28, 2017 6:48am by Thanitsak Leuangsupornpong
    Thanitsak Leuangsupornpong
    7,490 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    2 Answers

  • Ranvir Sahota
    Ranvir Sahota
    9,844 Points

    Why test Health <= 0;

    Posted March 25, 2017 9:56pm by Ranvir Sahota
    Ranvir Sahota
    9,844 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    1 Answer

  • Daniel W
    Daniel W
    1,341 Points

    Why have we scored if pathStep >= _path.Length? Isn't pathStep indexed from 0, while length is not?

    Posted July 18, 2016 10:13pm by Daniel W
    Daniel W
    1,341 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice

    3 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.