Something like abstract class

This is a discussion on Something like abstract class within the C Programming forums, part of the General Programming Boards category; Is there a way to create something like a abstract class in c?? please help!!!!...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    Something like abstract class

    Is there a way to create something like a abstract class in c??
    please help!!!!

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,621
    Not possible, unless you significantly limit the meaning of the term "abstract class".

    From a OO-design perspective, for example, an abstract class is typically defined as a class that must be derived (or inherited) from if it is to be used - and C does not support any form of inheritance.

    It is possible to use C structs to represent some aspects of classes but significant care is needed in managing the usage of those structs.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about designing a abstract class
    By ovid in forum C++ Programming
    Replies: 10
    Last Post: 05-15-2010, 02:43 PM
  2. Question about design class..
    By ovid in forum C++ Programming
    Replies: 5
    Last Post: 03-17-2010, 11:34 AM
  3. abstract class member cannot be overladed?
    By dudeomanodude in forum C++ Programming
    Replies: 10
    Last Post: 12-10-2008, 11:12 AM
  4. Replies: 7
    Last Post: 05-26-2005, 11:48 AM
  5. Abstract class problem
    By VanJay011379 in forum C++ Programming
    Replies: 9
    Last Post: 07-31-2002, 02:30 PM

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