Thread: Something like abstract class

  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,815
    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, Buttercup, 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, 01:43 PM
  2. Question about design class..
    By ovid in forum C++ Programming
    Replies: 5
    Last Post: 03-17-2010, 10: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, 10:48 AM