Errata Constructor


#1

Listing 32.3 generates a compile error

// used when creating view in code public BoxDrawingView(Context context) { this(context, null); }

I think this should be super


#2

Nope - it’s this(). It’s chaining to the second constructor below, BoxDrawingView(Context,AttributeSet).


#3

I also thought the book made an error here, until I realized I needed to implement the second constructor to make the compiler error go away.