Android Build a Simple Android App Improving Our Code Creating a New Class

Davidson Louis
Davidson Louis
873 Points

what did i do wrong?

Now add a String field (member variable) named mTitle. Make it public.

PictureBook.java
public class PictureBook{
public String mTitle();
}

1 Answer

Hi Davidson,

Since this is only a member variable, you don't need the parentheses at the end.