Summary
Summarize the concept explored in this chapter regarding Python data structures.
We'll cover the following...
Conclusion
Up till now, we’ve seen a total of four ways to address object-oriented design and implementation.
- In previous chapters, we looked at creating objects from scratch, writing all the method definitions ourselves. We’ve emphasized inheritance among the classes in the
Sample
class hierarchy. - In this chapter, we’ve seen a stateful class definition using
@dataclass
. This supports inheritance among the classes in theSample
class hierarchy. - We’ve also seen a stateless (or immutable) definition using
@dataclass(frozen=True)
. This tends