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

🤑 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

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

  • 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
    • Showing results for:
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Property Practice
    • Close
  • Michael Santos
    Michael Santos
    704 Points

    Why not use GetLocationAt for HasScored property instead?

    Posted on Oct 26, 2020 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 on Aug 9, 2019 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 on Aug 2, 2019 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 on Jun 17, 2019 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 on Apr 7, 2019 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 on Apr 4, 2019 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 on Dec 22, 2018 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 on Feb 12, 2018 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 on Nov 21, 2017 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 on Sep 21, 2017 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 on Aug 11, 2017 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 on Jul 22, 2017 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 on Mar 28, 2017 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 on Mar 25, 2017 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 on Jul 18, 2016 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.