Thread: Object oriented approach in C

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    http://cboard.cprogramming.com/showthread.php?t=78238
    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.

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, 07: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