Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moshegramovsky
on April 11, 2024
|
parent
|
context
|
favorite
| on:
If Inheritance is so bad, why does everyone use it...
Yes, but in my example, in the 70 classes, all the ::Read and ::Write methods must still say:
a.Read( ... ) a.Write( ... )
And depending on the use case and design, they also need methods such as:
A& GetA() { return a; ); const A& GetA() const { return a; }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: