B Introduction to Classes, Objects, Methods and Strings
Objectives
In this appendix you’ll learn:
How to declare a class and use it to create an object.
How to implement a class’s behaviors as methods.
How to implement a class’s attributes as instance variables and properties.
How to call an object’s methods to make them perform their tasks.
What instance variables of a class and local variables of a method are.
How to use a constructor to initialize an object’s data.
The differences between primitive and reference types.
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.