F Classes and Objects: A Deeper Look
Objectives
In this appendix you’ll learn:
Encapsulation and data hiding.
To use keyword
this
.To use
static
variables and methods.To import
static
members of a class.To use the
enum
type to create sets of constants with unique identifiers.To declare
enum
constants with parameters.To organize classes in packages to promote reuse.
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.