Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord