Can C be used to do OOP?

Discussion in 'C Programming' started by dr.hrchen@gmail.com, Dec 7, 2006.

  1. Guest

    Just native C.
    , Dec 7, 2006
    #1
    1. Advertising

  2. Laurent Deniau, Dec 7, 2006
    #2
    1. Advertising

  3. wrote:
    > 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?
    Martin Ambuhl, Dec 7, 2006
    #3
  4. jaysome Guest

    On 7 Dec 2006 00:44:05 -0800, wrote:

    >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");
    }
    jaysome, Dec 7, 2006
    #4
  5. CBFalconer Guest

    jaysome wrote:
    > On 7 Dec 2006 00:44:05 -0800, wrote:
    >
    >> 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");
    > }


    The natives are restless :)

    --
    Chuck F (cbfalconer at maineline dot net)
    Available for consulting/temporary embedded and systems.
    <http://cbfalconer.home.att.net>
    CBFalconer, Dec 7, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vysakh P Pillai
    Replies:
    4
    Views:
    305
    Ben Pope
    Feb 27, 2006
  2. Chris Carlen

    Can a low-level programmer learn OOP?

    Chris Carlen, Jul 13, 2007, in forum: Python
    Replies:
    78
    Views:
    1,500
    John J. Lee
    Jul 26, 2007
  3. Casey Hawthorne
    Replies:
    1
    Views:
    713
    Arne Vajhøj
    Mar 18, 2009
  4. Replies:
    58
    Views:
    1,200
    Kaz Kylheku
    Jan 14, 2010
  5. Ted Byers
    Replies:
    23
    Views:
    422
    Peter J. Holzer
    Nov 15, 2008
Loading...

Share This Page