Object oriented approach in C

This is a discussion on Object oriented approach in C within the C++ Programming forums, part of the General Programming Boards category; Hi all, I'm working on object-oriented "approach" in C (using gcc v 3.4.2). I'm using function pointers in structures and ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    36

    Question Object oriented approach in C

    Hi all,

    I'm working on object-oriented "approach" in C (using gcc v 3.4.2). I'm using function pointers in structures and static functions. Now I want to experiment on polymorphism. Can anybody plz tell me how I can achieve that? If anybody can throw light upon some other aspect he/she is welcome.

    I know that C and C++ compilers are different. Plz don't post answers like "it can never be achieved". I don't need one-to-one mapping.

    Thanks n regards,

    Arun

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Object oriented approach in C.
    Rule 1 of netiquette - read the forum rules.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good way to prepare for an object oriented job test
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 08-12-2008, 11:58 AM
  2. circular doubly linked list help
    By gunnerz in forum C++ Programming
    Replies: 5
    Last Post: 04-28-2007, 08:38 PM
  3. What's a good Object Oriented Strategy for OpenGL/Graphics
    By indigo0086 in forum Game Programming
    Replies: 9
    Last Post: 04-03-2007, 06:27 PM
  4. Object Oriented Presentaion help
    By vanella*Flavor in forum C++ Programming
    Replies: 9
    Last Post: 11-16-2005, 06:55 PM
  5. Object Oriented - Funny story
    By MethodMan in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-26-2002, 02:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21