Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gyy52380
on March 1, 2023
|
parent
|
context
|
favorite
| on:
“Clean” code, horrible performance
There is only one vtable object per base class; all shapes share the same vtable pointer and your virtual CornerCount would be shared across all Shape instances. You are describing a potential implementation for class static variables.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: