From the course: Grasshopper and Rhino: Python Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

What is OOP?

What is OOP?

From the course: Grasshopper and Rhino: Python Scripting

Start my 1-month free trial

What is OOP?

- [Instructor] Before we get into more complex Python scripts, let's have a look at the concept of Object-Oriented Programming to learn how dot notation and classes work. To define Object-Oriented Programming, it is a software programming methodology which separates software development into different objects containing their own logic. Python adopts the Object-Oriented Programming concept like most modern programming languages. This concept enables programs to become simpler, as the program can be broken up into different objects containing their own self-contained code. Take a piece of software designed to create geometry, for example. When thinking of geometry, we tend to think of ideas associated with geometry, such as a point, a curve, or a cube. These are all concepts that can be defined by their location in space, distance, or number of sides. It is these ideas that we can use to begin forming the software. Each of these ideas become objects, and each of these objects contain…

Contents