User profile: PhysicsIsFun

User info
User name:PhysicsIsFun
Number of posts:260
Latest posts:

inheritance confusion
Thanks mbozzi! So if I have [code]int main () { derived_class d; d.run_simulation(); ...

inheritance confusion
I am still a bit confused by the logic. Let's move away from virtual functions again. [code] #inclu...

inheritance confusion
Thanks Keskiverto, then my way of thinking is wrong. I interpret [code] d.base_class::run_simulatio...

inheritance confusion
Hi guys, can you tell me why in the last line the method of the child class is executed? [code] #in...

inheritance confusion
Hi guys, I had actually learned about virtual functions a couple of weeks ago, but seemed to have f...