Join 📚 Josh Beckman's Highlights
A batch of the best highlights from what Josh's read, .
Today, roughly 500 Americans are dying each day from COVID-19. At this rate, SARS-CoV-2 will be the fourth leading cause of death in the U.S. in 2023—about triple the threat of influenza.
Are We Still in a COVID-19 Emergency?
Katelyn Jetelina from Your Local Epidemiologist
Roy Simmons coined that phrase and I like it a lot. “Most artists can’t draw.”
We need to add something: “But all artists can see.”
So here are the benefits of inheritance:
• Unlike composition, you can pass the subclass into functions expecting the parent class.
• Unlike interfaces, you can reuse code from the parent class in the child class.
So, here’s when you want to use inheritance: **when you need to instantiate both the parent and child classes and pass them to the same functions.** That’s it. That’s the use case.
When to Prefer Inheritance to Composition
Hillel Wayne
...catch up on these, and many more highlights