Skip to main content

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

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

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

  • 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
  • gomulo
    gomulo
    1,907 Points

    var age: int { get set } is not working? please correct error so I can move on with lesson.

    Posted January 27, 2017 6:09am by gomulo
    gomulo
    1,907 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Ronit Mankad
    Ronit Mankad
    12,166 Points

    Error!

    Posted September 21, 2016 4:08pm by Ronit Mankad
    Ronit Mankad
    12,166 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    0 Answers

  • Trevor Wood
    Trevor Wood
    17,828 Points

    Not sure what the problem here is

    Posted September 3, 2016 5:04pm by Trevor Wood
    Trevor Wood
    17,828 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Carl Smith
    Carl Smith
    8,185 Points

    Not sure how to set {get} and {set} for this challenge

    Posted July 16, 2016 4:58am by Carl Smith
    Carl Smith
    8,185 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Safwat Shenouda
    Safwat Shenouda
    12,362 Points

    This excercise doesnt work properly , when I enter the correct answer I keep getting an error message

    Posted July 11, 2016 9:21am by Safwat Shenouda
    Safwat Shenouda
    12,362 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • shane reichefeld
    PLUS
    shane reichefeld
    Courses Plus Student 2,232 Points

    confused help with problem please

    Posted June 10, 2016 7:22pm by shane reichefeld
    shane reichefeld
    Courses Plus Student 2,232 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Paul Je
    Paul Je
    4,435 Points

    Not sure what I'm missing here..

    Posted June 4, 2016 7:47pm by Paul Je
    Paul Je
    4,435 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    2 Answers

  • zacharygarlett
    zacharygarlett
    7,483 Points

    Why do you test us over things you haven't taught us yet? I get you want us to think but sometimes syntax isn't intuitiv

    Posted May 25, 2016 11:20pm by zacharygarlett
    zacharygarlett
    7,483 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Haitham Alam
    Haitham Alam
    2,685 Points

    Why?

    Posted April 7, 2016 8:15pm by Haitham Alam
    Haitham Alam
    2,685 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    4 Answers

  • Jose Patarroyo
    Jose Patarroyo
    2,953 Points

    challenge 1 Protocols doesn't work

    Posted March 14, 2016 3:00am by Jose Patarroyo
    Jose Patarroyo
    2,953 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    4 Answers

  • Giorgos Karyofyllis
    Giorgos Karyofyllis
    21,276 Points

    [SOLVED] ... Declare a protocol

    Posted March 11, 2016 12:28am by Giorgos Karyofyllis
    Giorgos Karyofyllis
    21,276 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    0 Answers

  • renefandida
    renefandida
    1,227 Points

    Hi,Got this "Make sure UserType specifies a gettable property named `name` of type String" even i follow the instruction

    Posted February 20, 2016 10:29pm by renefandida
    renefandida
    1,227 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    0 Answers

  • Welby Obeng
    Welby Obeng
    20,340 Points

    Swift 2.0 Protocols Issue : Bummer! Make sure UserType specifies a gettable property named `name` of type String

    Posted February 7, 2016 1:36pm by Welby Obeng
    Welby Obeng
    20,340 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Paul Hammond
    Paul Hammond
    47 Points

    How do I answer this question

    Posted January 23, 2016 4:19am by Paul Hammond
    Paul Hammond
    47 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • Paul Hammond
    Paul Hammond
    47 Points

    How do I answer this question

    Posted January 23, 2016 4:17am by Paul Hammond
    Paul Hammond
    47 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

  • erinkrentz
    erinkrentz
    8,839 Points

    It says that I need to specify {get} or {get set}, but I have done that.

    Posted January 14, 2016 6:02pm by erinkrentz
    erinkrentz
    8,839 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    0 Answers

  • KARTHIK MENON
    KARTHIK MENON
    382 Points

    Please help me with this.

    Posted January 4, 2016 6:08am by KARTHIK MENON
    KARTHIK MENON
    382 Points
    • iOS
    • Swift 2.0 Protocols
    • Swift 2.0 Protocols
    • Declaring a Protocol

    1 Answer

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