Can C be used to do OOP?

M

Martin Ambuhl

Just native C.
Yes, it can.
This is an old, tired topic. If you check the archives at Google
groups, you will find many posts telling how to do it. Further, if you
use the Google search engine, you will find several websites about how
to do it. Come to think of it, any self-respecting civilized person
would have done that *before* posting a question like yours. Why didn't
you?
 
J

jaysome

Just native C.

Of course it can.

#include <stdio.h>

static void C_doing_OOP(void);
int main(void)
{
C_doing_OOP();
return 0;
}

static void C_doing_OOP(void)
{
printf("This is native C_doing_OOP\n");
}
 
C

CBFalconer

jaysome said:
Of course it can.

#include <stdio.h>

static void C_doing_OOP(void);
int main(void)
{
C_doing_OOP();
return 0;
}

static void C_doing_OOP(void)
{
printf("This is native C_doing_OOP\n");
}

The natives are restless :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top