3. Introduction to Classes, Objects, Methods and Strings

Objectives

In this chapter you’ll:

Image Declare a class and use it to create an object.

Image Implement a class’s behaviors as methods.

Image Implement a class’s attributes as instance variables.

Image Call an object’s methods to make them perform their tasks.

Understand what primitive types and reference types ...

Get Java 9 for Programmers 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.