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

Build an Interactive story App

Finally ,add the setter method

Spaceship.java
public class Spaceship{

public String shipType;   

public String getShipType(){

  return shipType; 

  public void setType (String type);{}
  shipType = variabletype;
}
}