5
Language Fundamentals – Classes
An object-oriented (OO) program is based on the design of structures called classes that are used as the blueprint for objects. An object is the implementation of a class. This means that the first step in coding in OO programming (OOP) is to create classes. This chapter will examine how the features of OOP are implemented in Java. We begin by looking at how we define variables in a class followed by how we control access to members of a class and the class itself. From here, we will look at the class structure Java provides us for creating or working with classes and objects.
In this chapter, you will learn about the following:
- Class fields
- Understanding access control
- Understanding classes
By the end of ...
Get Transitioning to Java 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.