1 Results for: "secondary constructor"

Constructors

  • : A primary constructor has no function body — any such code goes into an init block. Secondary constructors, though, can have bodies, the way that functions do, but only if needed. Secondary constructors must arrange to call the primary constructor. This is handled by having a this() call after the constructor parameter list, separated from that list via a colon. The this() call needs to match the parameter list of the primary constructor — in the example shown above, the secondary constructor needs to provide

Search Syntax

You can search on individual terms (RecyclerView) or phrases ("configuration change").

A search on multiple terms (RecyclerView "configuration change") is considered to be a logical OR — the search results will show pages that refer to either option.

You can use AND, OR, NOT, and parentheses to construct search queries (e.g., RecyclerView AND "configuration change").

You can use * as a wildcard in an individual term (List*).

Color Coding

Green-bordered search hits are from second-generation CommonsWare books on Android app development. They will mostly show Kotlin and will use the AndroidX/Jetpack libraries.

Yellow-bordered search hits are from first-generation CommonsWare books on Android app development. They will mostly show Java and will use the Android Support Library.