Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Python Object-Oriented Programming - From Fundamentals to Advanced Concepts

via freeCodeCamp

Overview

Coursera Plus Monthly Sale: All Certificates & Courses 40% Off!
Learn Object-Oriented Programming (OOP) fundamentals in Python through a comprehensive 2.5-hour video course designed for beginners. Master essential concepts including class and object creation, attributes and methods implementation, and data access control through getters and setters. Explore core OOP principles like inheritance, encapsulation, abstraction, and polymorphism while building practical programming skills. Progress through hands-on examples including a Person class implementation, understanding protected and private attributes, working with static methods and attributes, and applying advanced OOP concepts. Created by Dan Adams, the course includes access to GitHub repository materials and offers clear explanations of when and how to apply different OOP techniques for writing clean, maintainable software.

Syllabus

0:00:00 Intro
0:04:16 Creating classes and objects
0:15:15 Combining objects
0:21:43 Recap: classes, objects, attributes, methods and self
0:26:46 Example: a Person class
0:34:42 Accessing and modifying object data
0:41:13 Access modifiers: protected attributes
0:45:39 When should you make an attribute protected?
0:48:37 Python's "Consenting Adults" philosophy and private attributes
0:51:17 When to use protected vs private attributes
0:53:27 Creating getter and setter methods
0:57:22 Why do we create getters and setters?
1:03:37 Properties: creating a getter property. Properties vs getters and setters
1:10:39 Properties: creating a setter property
1:15:39 Static attributes
1:23:19 Static attributes vs instance attributes
1:25:13 Static methods
1:33:20 Static methods: when to use them?
1:34:46 Protected and private methods
1:39:55 Encapsulation
1:51:53 Encapsulation: why is it important?
1:55:10 Abstraction
2:05:08 Inheritance
2:15:49 Polymorphism: intro and naive solution
2:25:06 Polymorphism: refactored solution
2:35:35 Conclusion

Taught by

freeCodeCamp.org

Reviews

Start your review of Python Object-Oriented Programming - From Fundamentals to Advanced Concepts

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.