Tag Archives: function pointer

Method polymorphism in C

An overdue post on polymorphism, which in C amounts to the ability to call a method on an object without knowing what the implementation is.

Posted in Higher-level C | Tagged , , | 2 Comments

Encapsulation in C

A previous post in my Higher-level C series introduced basic object creation, using structs. Here I’d like to elaborate on how to define and organise code that operates on objects.

Posted in Higher-level C | Tagged , , , , | 6 Comments