Object Oriented Programming in python

Please login to bookmark Close
Cover image for the Python Object-Oriented Programming (OOP) course

In programming, we can divide code architecture into two main styles, called paradigms.

  • Functional programming
  • Object-Oriented Programming (OOP)

Functional programming

Functional programming is a style of writing code where everything is done using functions. This style works well for scripting, and it is often used for things like data processing, statistics, or math problems. However, when a program becomes big and complex, this style can become harder to manage, because it is not always easy to organize and reuse the code.

What is Object-Oriented Programming?

Object-Oriented Programming (OOP) is a programming paradigm. It is usually the main style used to build large, professional, and commercial software.

Why should we learn Object-Oriented Programming?

OOP is an important part of almost every piece of software that is built commercially with Python.

Not using OOP techniques in software development is like a taekwondo fighter who only uses hand techniques, even though most of the important techniques in taekwondo are kicks. In the same way, if you skip OOP, you are missing many of the most useful tools in programming.

What do you need to know before starting this course?

  • Basic knowledge of lists
  • Basic knowledge of tuples
  • Basic knowledge of dictionaries
  • Knowing how to use for loops and while loops
  • A good understanding of functions
    • How to define a function
    • Different types of function inputs
    • Different types of function outputs
    • Basic knowledge of recursive functions

What will you learn in this course?

  • How to think in an object-oriented way
  • The syntax of Object-Oriented Programming in Python

My teaching approach in this course

Many programmers struggle for a long time when they first start learning Object-Oriented Programming, and in the end, they still do not fully understand it.

I had a hard time too when I was learning OOP. Even though the ideas were simple, I often felt confused about why things worked the way they did. Looking back, the real problem was that I had not yet learned how to think in an object-oriented way.

The most important thing you need to learn in this course is object-oriented thinking, and the only way to build this skill is through many examples.

In this course, I have tried my best to give many good examples for every OOP concept, so that you can build a strong, correct way of thinking about object-oriented programming.

How to use the content of this course

The topics in this course are closely connected to each other. Sometimes, while reading one part, a question may come to your mind that is not answered right there. Please keep reading, because your question will likely be answered in a later section. Sometimes I had to leave the explanation of certain topics for later parts, just to keep the course organized and easy to follow.

What should you do after finishing this course?

Even learning just 30 to 40 percent of the basic ideas in this course will help you handle most of the common OOP needs in commercial software.

After finishing this course, you will be ready to learn about design patterns, which are one of the most important topics in programming.

Please login to bookmark Close
نظرات

Leave a Reply

فهرست مطالب

سرفصل دوره

تمرین

این قسمت تمرین ندارد!

پاسخ تمرین ها

هنوز برای تمرین‌های این قسمت پاسخی ثبت نشده است!

اشتراک گذاری

Why we should use VPN?

I upload all CodeBaz videos and podcasts on platforms such as YouTube and SoundCloud, which are often restricted in Iran.

Most tutorials come with both video and podcast formats. Therefore, if you want to make the most out of the site’s content, you will need to use a VPN.

Please note that for shopping in the store, it’s better to turn off your VPN to avoid issues with payment and banking connections.

Settings

Language
Theme