#object-oriented-programming

[ follow ]
#python
Python
fromRealpython
3 months ago

What Does isinstance() Do in Python? - Real Python

isinstance() determines if an object is an instance of a specified class or its superclass.
Bootstrapping
fromGlyph
6 months ago

Stop Writing `__init__` Methods

Dataclasses in Python 3.7 simplified the creation of classes, making it easier to represent data structures without complex initialization methods.
fromRealpython
2 months ago

Episode #261: Selecting Inheritance or Composition in Python - The Real Python Podcast

When tackling object-oriented programming problems, one must choose between inheritance and composition, as each has distinct trade-offs. Composition often leads to more flexible and reusable code.
Python
Java
fromInfoWorld
3 months ago

What you need to know about Java wrapper classes

Wrapper classes bridge the gap between primitive types and objects, essential for modern Java features.
[ Load more ]