© Connor P. Milliken 2020
C. P. MillikenPython Projects for Beginnershttps://doi.org/10.1007/978-1-4842-5355-7_7

7. Object-Oriented Programming

Connor P. Milliken1 
(1)
Derry, NH, USA
 

Many languages are known as object-oriented programming (OOP) languages. Python, JavaScript, Java, and C++ are just a couple of names that use OOP. Throughout this week, we’ll begin to understand what OOP is, why it’s so useful, and how to implement it within a program.

In Python (and most languages), we create objects through classes that we build. You can think of a class as a blueprint for how an object is created. Take a first-person shooter video game, for instance. All players, vehicles, and weapons are objects. There could be five people each on two teams, but ...

Get Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.