Android Build an Interactive Story App The Model-View-Presenter Pattern Creating a Data Model

Next, we need getter and setter methods for our member variable. Let's start with the getter method. Add a method to get

what am i doing wrong?

Spaceship.java
public class Spaceship{
  public String shipType;

  public String getshipType() {

    return shipType;
  }

  public void setshipType(String type) {
    shipType = type;
  }

}

1 Answer

Raffael Dettling
Raffael Dettling
31,039 Points

To pass you have to make ship to Ship ^^ Your error is "The naming convention is 'getVariableName'."