© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
W. Wang, T. WalcottProgramming for Game Designhttps://doi.org/10.1007/979-8-8688-0190-7_11

11. Object-Oriented Programming

Wallace Wang1   and Tonnetta Walcott2
(1)
San Diego, CA, USA
(2)
El Cajon, CA, USA
 

The main idea behind object-oriented programming is to help write more reliable software. Smaller programs are easier to write and understand than larger programs, which is why programmers divide large programs into multiple, smaller functions. Every program consists of data to manipulate and algorithms that provide step-by-step instructions for manipulating that data.

One problem with functions is that they isolate algorithms, but each function can potentially ...

Get Programming for Game Design: A Hands-On Guide with Godot 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.