Skip to Content
Foundational Python for Data Science
book

Foundational Python for Data Science

by Kennedy Behrman
September 2021
Beginner to intermediate
256 pages
6h 48m
English
Addison-Wesley Professional
Content preview from Foundational Python for Data Science

14

Object-Oriented Programming

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

Martin Fowler

In This Chapter

The object-oriented approach to programming is one of the most popular approaches. It is an approach that tries to model objects and their relationships by combining functionality and data. If you think of modeling a car in code, the object-oriented approach is to have both methods that take actions such as accelerating or breaking as well as data such as the amount of fuel in the gas tank attached to the same object. Other approaches would keep the data (the gas level, in this case) separate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Interpretable Machine Learning with Python

Interpretable Machine Learning with Python

Serg Masís
Data Science Bookcamp

Data Science Bookcamp

Leonard Apeltsin

Publisher Resources

ISBN: 9780136624417