#object-oriented-programming

[ follow ]
fromRealpython
3 weeks 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
#python
fromRealpython
1 month ago
Python

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

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

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.
Java
fromInfoWorld
2 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 ]