© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. MeyerProgramming 101https://doi.org/10.1007/978-1-4842-8194-9_4

4. Classes

Jeanine Meyer1  
(1)
Mt Kisco, NY, USA
 

Abstract

This chapter introduces the concept of a class, a way to associate data and code. A class defines a set of objects that are defined by a set of variables and a set of procedures, which are termed methods, that make use of those variables. In the previous chapter, I showed the use of arrays to hold similar items of information. The technique of using a set of such arrays is termed parallel structures. Classes are a more structured way to model things, with the models consisting of information and behavior. I want to inspire you to view ...

Get Programming 101: Learn to Code with the Processing Language Using a Visual Approach 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.