Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • FWIW, with C you can do virtual dispatch like this: obj->type->mthd(obj, ...); and that's substantially similar to what happens with virtual dispatch in other languages (but behind the scenes). Commented Jan 22, 2012 at 15:44
  • @Karl Can you please provide some kind of written reference to start digging deeper? Commented Jul 5, 2018 at 12:51
  • You might want to look at GObject as a good reference implementation. Commented Jul 5, 2018 at 15:09