Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • Derek Lam
    Derek Lam
    1,012 Points

    Can anyone help me to solve Challenge 2 of adding second contractor?

    Posted April 24, 2021 8:36am by Derek Lam
    Derek Lam
    1,012 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    0 Answers

  • Christopher Mawonde
    Christopher Mawonde
    3,044 Points

    Adding constructors

    Posted June 6, 2020 11:48pm by Christopher Mawonde
    Christopher Mawonde
    3,044 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Dmitry Dubodel
    Dmitry Dubodel
    1,308 Points

    Stuck on the 2nd question here. What does "update shipType to a specific type of spaceship" mean?

    Posted February 9, 2020 2:42pm by Dmitry Dubodel
    Dmitry Dubodel
    1,308 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    0 Answers

  • elton mutasa
    elton mutasa
    1,831 Points

    constructors

    Posted September 23, 2019 9:26pm by elton mutasa
    elton mutasa
    1,831 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    0 Answers

  • justimagine
    justimagine
    2,914 Points

    InvocationTargetException caught

    Posted August 25, 2019 9:21am by justimagine
    justimagine
    2,914 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Prosper moyo
    Prosper moyo
    1,876 Points

    Now add a second constructor that takes a String parameter. Use this parameter to update shipType to a specific type

    Posted August 21, 2019 11:48am by Prosper moyo
    Prosper moyo
    1,876 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • mahi manu
    mahi manu
    980 Points

    Now add a second constructor that takes a String parameter. Use this parameter to update shipType to a specific type of

    Posted October 13, 2018 4:57am by mahi manu
    mahi manu
    980 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    0 Answers

  • Kumar Sambhav
    PLUS
    Kumar Sambhav
    Courses Plus Student 70 Points

    how to set shipType to a specific type of Spaceship in this question?

    Posted June 21, 2018 9:26am by Kumar Sambhav
    Kumar Sambhav
    Courses Plus Student 70 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Clive Machimbidza
    Clive Machimbidza
    4,163 Points

    Now add a second constructor that takes a String parameter. Use this parameter to update shipType to a specific type of

    Posted May 21, 2018 11:43am by Clive Machimbidza
    Clive Machimbidza
    4,163 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Kay Larry
    Kay Larry
    213 Points

    android help

    Posted April 16, 2018 3:27pm by Kay Larry
    Kay Larry
    213 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • mohammed najb
    mohammed najb
    2,533 Points

    the declaration is rigth but it's considered as a method. It gives an error

    Posted March 22, 2018 4:33pm by mohammed najb
    mohammed najb
    2,533 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Simon Riemertzon
    Simon Riemertzon
    862 Points

    Trying to add a constructor, IDE thinks its a method!

    Posted November 21, 2017 1:01pm by Simon Riemertzon
    Simon Riemertzon
    862 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Caleb Seeling
    Caleb Seeling
    1,189 Points

    Please help I cant solve the Task number 2!

    Posted October 16, 2017 5:22pm by Caleb Seeling
    Caleb Seeling
    1,189 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Caleb Seeling
    Caleb Seeling
    1,189 Points

    Cant end the Task!

    Posted October 16, 2017 2:27pm by Caleb Seeling
    Caleb Seeling
    1,189 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Vaibhav Gaur
    Vaibhav Gaur
    750 Points

    Compiler Error

    Posted August 7, 2017 3:03pm by Vaibhav Gaur
    Vaibhav Gaur
    750 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Kenneth Phillips
    PLUS
    Kenneth Phillips
    Courses Plus Student 10,188 Points

    Adding a custom constructor

    Posted June 16, 2017 8:03pm by Kenneth Phillips
    Kenneth Phillips
    Courses Plus Student 10,188 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Travis Loflin
    Travis Loflin
    819 Points

    What am I doing wrong to change a parameter?

    Posted June 14, 2017 4:36am by Travis Loflin
    Travis Loflin
    819 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    0 Answers

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    Now add a second constructor that takes a String parameter. Use this parameter to update shipType to a specific type of

    Posted June 7, 2017 6:53pm by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    some constructors. First, add a default constructor with no parameters. Inside the constructor, set shipType to SHUTTLE

    Posted June 6, 2017 11:36pm by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    Let's continue with our custom data model. We need some constructors. First, add a default constructor with no parameter

    Posted June 6, 2017 9:32pm by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    4 Answers

  • kelvin gwaruka
    kelvin gwaruka
    931 Points

    Constructors

    Posted June 1, 2017 10:04pm by kelvin gwaruka
    kelvin gwaruka
    931 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Jonathan Barnthouse
    Jonathan Barnthouse
    2,801 Points

    Challenge Task 1 of 2 Hi Looking for the full code can't pass the challenge. If I can see the code then it is clear.

    Posted May 24, 2017 11:06pm by Jonathan Barnthouse
    Jonathan Barnthouse
    2,801 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    3 Answers

  • Andre Dippenaar
    Andre Dippenaar
    497 Points

    Adding a default constructor with no parameters

    Posted May 9, 2017 1:15pm by Andre Dippenaar
    Andre Dippenaar
    497 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    1 Answer

  • Mohamed Belhadj
    Mohamed Belhadj
    923 Points

    Now add a second constructor that takes a String parameter. Use this parameter to update shipType to a specific type of

    Posted April 28, 2017 10:52am by Mohamed Belhadj
    Mohamed Belhadj
    923 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    2 Answers

  • Matthew Williams
    Matthew Williams
    3,103 Points

    Need help with this question

    Posted April 20, 2017 5:08pm by Matthew Williams
    Matthew Williams
    3,103 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    2 Answers

  • Matthew Williams
    Matthew Williams
    3,103 Points

    I need help.

    Posted April 20, 2017 4:30am by Matthew Williams
    Matthew Williams
    3,103 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Adding a Custom Constructor

    2 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