• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Ra Bha
    Ra Bha
    2,201 Points

    Why does the instructor change the name of the field Location to _location when the field changes to private?

    Posted November 17, 2020 4:06pm by Ra Bha
    Ra Bha
    2,201 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Accessor Methods

    1 Answer

  • AbderRahman Ezzeldin
    AbderRahman Ezzeldin
    1,066 Points

    i dont understand the getter here why does it have to return and where is it returning ?

    Posted August 7, 2018 10:42pm by AbderRahman Ezzeldin
    AbderRahman Ezzeldin
    1,066 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Accessor Methods

    1 Answer

  • Mark Ramos
    Mark Ramos
    19,196 Points

    Should all fields be private going forward?

    Posted July 3, 2018 7:20pm by Mark Ramos
    Mark Ramos
    19,196 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Accessor Methods

    1 Answer

  • LESTER POLICARPIO
    LESTER POLICARPIO
    2,139 Points

    private MapLocation _location;

    Posted May 9, 2017 10:38am by LESTER POLICARPIO
    LESTER POLICARPIO
    2,139 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Accessor Methods

    1 Answer

  • Thanitsak Leuangsupornpong
    Thanitsak Leuangsupornpong
    7,490 Points

    Confuse about naming parameter in Setter that use word value.

    Posted March 26, 2017 5:57am by Thanitsak Leuangsupornpong
    Thanitsak Leuangsupornpong
    7,490 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Accessor Methods

    2 Answers

  • Stijn Van Wijmeersch
    Stijn Van Wijmeersch
    5,663 Points

    Return a boolean when using more complex setters?

    Posted November 14, 2016 8:06pm by Stijn Van Wijmeersch
    Stijn Van Wijmeersch
    5,663 Points
    • C#
    • C# Objects
    • Encapsulation with Properties
    • Accessor 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

  • Web Development
  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis

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

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.