From the course: Python Quick Start
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
What is object-oriented programming? - Python Tutorial
From the course: Python Quick Start
What is object-oriented programming?
Python supports object oriented programming, also known as OOP, which is a useful approach to programming. Now there's a lot to OOP, but for the purposes of this course, I'll give you a quick introduction. In OOP, objects are collections of both data and the methods that operate on that data. Every object has a type, and the type defines the kinds of things that programs can do with objects of that type. Usually, each object definition corresponds to some object or concept in the real world, and the functions that operate on that object correspond to the ways real world objects interact. In Python, built-in objects include lists, tuples and the methods associated with those data types. Programmers can define new objects. Objects are categorized to stay organized. They're categorized into something called classes. Every object is an instance of a class. For example, say you want to define a new type of object that is not built into Python and corresponds to the characteristics of dogs…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.