🤑 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
  • 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.

    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.