Python vs Java: Object Oriented Programming (Summary)
Throughout this course, you learned how object-oriented principles differ in Python vs Java.
You learned about:
- Building a basic class in both Java and Python
- How object attributes work in Python vs Java
- How to compare and contrast Java methods and Python functions
- Working with inheritance and polymorphism mechanisms in both languages
- How reflection works across Python vs Java
- How to apply everything in a complete class implementation in both languages
If you want to learn more about OOP in Python, be sure to check out these resources:
- Intro to Object-Oriented Programming (OOP) in Python
- Inheritance and Composition: A Python OOP Guide
- Supercharge Your Classes With Python super()
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 Welcome to the end of the Object-Oriented Programming in Python versus Java course. Let’s review what we did.
00:08 You started with a basic class in Java, and you saw how to write it in Python. We looked at how attributes worked in Python, including object attributes, class attributes, properties, and how to control access to them.
00:23 We saw the notion of a Python function, which can exist outside of any class, for instance. We saw how Python implemented inheritance and made use of polymorphism.
00:35 We looked at how objects in Python can discover information about themselves. And we put all that together to write a full class implementation in Python.
00:46 I hope you enjoyed this course, and look forward to seeing you in another one very soon.
Become a Member to join the conversation.
Alain Rouleau on July 1, 2021
Good insights and comparisons as it relates to Python and Java. Very much enjoyed the videos. Thanks a lot!