🤑 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
  • Makanaka Zindoga
    Makanaka Zindoga
    4,860 Points

    I have a problem with this code

    Posted September 5, 2021 5:08pm by Makanaka Zindoga
    Makanaka Zindoga
    4,860 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Thea Partin
    Thea Partin
    8,750 Points

    I have no clue what is wrong with my code. Could someone please help?

    Posted May 29, 2021 10:21pm by Thea Partin
    Thea Partin
    8,750 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Ra Bha
    Ra Bha
    2,201 Points

    Not sure what's wrong with my code to replace accessor methods with a property

    Posted November 18, 2020 5:17pm by Ra Bha
    Ra Bha
    2,201 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Kathryn Rose
    Kathryn Rose
    1,104 Points

    Compiler says: Frog.cs(11,12): error CS1525: Unexpected symbol `{'

    Posted April 10, 2020 2:24pm by Kathryn Rose
    Kathryn Rose
    1,104 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    0 Answers

  • Fabian Pijpers
    PLUS
    Fabian Pijpers
    Courses Plus Student 41,372 Points

    Of what class is NumFliesEaten an instance of. Because I keep on getting the same errors! Do you know? It is invisible.

    Posted November 12, 2018 7:31am by Fabian Pijpers
    Fabian Pijpers
    Courses Plus Student 41,372 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Fabian Pijpers
    PLUS
    Fabian Pijpers
    Courses Plus Student 41,372 Points

    Does anybody have an idea where I messed uP? With Challenge c-objects/encapsulation-with-properties/properties

    Posted November 11, 2018 2:20pm by Fabian Pijpers
    Fabian Pijpers
    Courses Plus Student 41,372 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    2 Answers

  • Tojo Alex
    PLUS
    Tojo Alex
    Courses Plus Student 13,331 Points

    Compiler error

    Posted May 19, 2018 7:00pm by Tojo Alex
    Tojo Alex
    Courses Plus Student 13,331 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Anthony Dowdell
    Anthony Dowdell
    1,880 Points

    Error implementing get set.

    Posted April 21, 2018 9:39pm by Anthony Dowdell
    Anthony Dowdell
    1,880 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Mahyar Najizad
    Mahyar Najizad
    3,572 Points

    Problem

    Posted March 25, 2018 1:51pm by Mahyar Najizad
    Mahyar Najizad
    3,572 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Adrianna Dar
    Adrianna Dar
    995 Points

    Setter and getter challenge in properties C# Objects.

    Posted October 28, 2017 7:52am by Adrianna Dar
    Adrianna Dar
    995 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Joao Ricardo Ferreira
    PLUS
    Joao Ricardo Ferreira
    Courses Plus Student 805 Points

    Pretty sure im correct and getting compiler error about curly braces below get and set

    Posted September 25, 2017 7:27pm by Joao Ricardo Ferreira
    Joao Ricardo Ferreira
    Courses Plus Student 805 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    0 Answers

  • Jonathan Barnthouse
    Jonathan Barnthouse
    2,801 Points

    Challenge Task 1 of 1 Replace the accessor methods with a property named NumFliesEaten with a getter and setter for _nu

    Posted January 10, 2017 8:18pm by Jonathan Barnthouse
    Jonathan Barnthouse
    2,801 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    2 Answers

  • Albert González
    Albert González
    22,953 Points

    Replace the accessor methods with a property named NumFliesEaten with a getter and setter for _numFliesEaten.

    Posted December 28, 2016 10:49am by Albert González
    Albert González
    22,953 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • hankamamut
    hankamamut
    3,177 Points

    where the value comes from?

    Posted October 29, 2016 12:18am by hankamamut
    hankamamut
    3,177 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    2 Answers

  • Derek Etnyre
    Derek Etnyre
    20,822 Points

    Replace the accessor methods - not quite right.

    Posted June 16, 2016 9:38pm by Derek Etnyre
    Derek Etnyre
    20,822 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    7 Answers

  • Luis Santos
    Luis Santos
    3,566 Points

    I need HELP!!!

    Posted June 13, 2016 2:50am by Luis Santos
    Luis Santos
    3,566 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Properties

    1 Answer

  • Adam Tenhouse
    Adam Tenhouse
    9,172 Points

    Property declaration not honored?

    Posted May 23, 2016 1:49am by Adam Tenhouse
    Adam Tenhouse
    9,172 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • 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
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.