P
Prashanth Ellina
Hi,
I have a feeling that OOP can be done in C also. I have used a
structure to hold member variables and function pointers. The
structure is used as a class to create new 'objects'. But I hit a
problem. How do I access these 'member variables' from the function
that is pointed to by the function pointer in the structure.
I would really appreciate help with this and a code sample will be
wonderful.
Thanks in advance,
Prashanth Ellina
I have a feeling that OOP can be done in C also. I have used a
structure to hold member variables and function pointers. The
structure is used as a class to create new 'objects'. But I hit a
problem. How do I access these 'member variables' from the function
that is pointed to by the function pointer in the structure.
I would really appreciate help with this and a code sample will be
wonderful.
Thanks in advance,
Prashanth Ellina