Analogue of C++ class in C:
We can have object-oriented implementation in C, by having a global function which implements all the interfaces of an object.The particular function will use local data-structures and locally declared functions, which will be accessible only inside the gobal function not outside it.
The locally declared functions can be get-set methods or any sort of manipulation of the locally defined data-structure.
The global function itself acts like the class.
The object creation and manipulation will be handled by this function alone.