An intriguing C++ quiz,
by Dragos Barosan.

Given class Derived extends Parent and both define the same method, how different will these two instances of Derived behave and why?

`Derived *x=new Derived;`
`Parent *x = new Derived;`

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!